doc: Fix API comments to support javadoc
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Fri, 2 Dec 2016 11:07:50 +0000 (12:07 +0100)
committerPhil Coval <philippe.coval@osg.samsung.com>
Thu, 8 Dec 2016 14:52:51 +0000 (14:52 +0000)
Many parse error roughtly fixed,
 it might worth to verify this by CI too

Change-Id: I61adabf0d454104826b4adaf8cb60297beb91a42
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/15061
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit 022f12861aacf5d40b5ab037602eab3b957b5bf0)
Reviewed-on: https://gerrit.iotivity.org/gerrit/15221
Reviewed-by: Habib Virji <habib.virji@samsung.com>
25 files changed:
android/android_api/base/src/main/java/org/iotivity/base/OcAccountManager.java
android/android_api/base/src/main/java/org/iotivity/base/OcCloudProvisioning.java
android/android_api/base/src/main/java/org/iotivity/base/OcDirectPairDevice.java
android/android_api/base/src/main/java/org/iotivity/base/OcPlatform.java
android/android_api/base/src/main/java/org/iotivity/base/OcPlatformInfo.java
android/android_api/base/src/main/java/org/iotivity/base/OcProvisioning.java
android/android_api/base/src/main/java/org/iotivity/base/OcResource.java
android/android_api/base/src/main/java/org/iotivity/base/OcSecureResource.java
android/android_api/base/src/main/java/org/iotivity/base/ResourceProperty.java
android/android_api/base/src/main/java/org/iotivity/ca/CaInterface.java
service/easy-setup/mediator/richsdk/android/EasySetupCore/src/main/java/org/iotivity/service/easysetup/mediator/CloudPropProvisioningStatus.java
service/notification/android/notification-service/src/main/java/org/iotivity/service/ns/common/MediaContents.java
service/notification/android/notification-service/src/main/java/org/iotivity/service/ns/common/Message.java
service/notification/android/notification-service/src/main/java/org/iotivity/service/ns/common/SyncInfo.java
service/notification/android/notification-service/src/main/java/org/iotivity/service/ns/common/Topic.java
service/notification/android/notification-service/src/main/java/org/iotivity/service/ns/common/TopicsList.java
service/notification/android/notification-service/src/main/java/org/iotivity/service/ns/consumer/ConsumerService.java
service/notification/android/notification-service/src/main/java/org/iotivity/service/ns/consumer/Provider.java
service/notification/android/notification-service/src/main/java/org/iotivity/service/ns/provider/Consumer.java
service/notification/android/notification-service/src/main/java/org/iotivity/service/ns/provider/ProviderService.java
service/resource-container/android/resource-container/src/main/java/org/iotivity/service/resourcecontainer/BundleResource.java
service/resource-container/android/resource-container/src/main/java/org/iotivity/service/resourcecontainer/RcsResourceAttributes.java
service/resource-container/android/resource-container/src/main/java/org/iotivity/service/resourcecontainer/RcsResourceContainer.java
service/resource-encapsulation/android/service/src/main/java/org/iotivity/service/RcsResourceAttributes.java
service/resource-encapsulation/android/service/src/main/java/org/iotivity/service/server/RcsResourceObject.java

index e9bb9e8..f2a995b 100644 (file)
@@ -42,7 +42,7 @@ public final class OcAccountManager {
     /**
      * Method to get the connectivity type for account server
      *
-     * @return EnumSet<OcConnectivityType></OcConnectivityType> connectivity type set
+     * @return EnumSet OcConnectivityType connectivity type set
      */
     public EnumSet<OcConnectivityType> getConnectivityTypeSet() {
         return OcConnectivityType.convertToEnumSet(
index 31a071c..3e60a26 100755 (executable)
@@ -42,7 +42,7 @@ public class  OcCloudProvisioning {
    /**
     * API to construct the CloudProvisioning
     *
-    * @param ipAddr address of the cloud server
+    * @param ip address of the cloud server
     * @param port port of the cloud server
     */
     public OcCloudProvisioning(String ip, int port) {
index aff3238..55b4dd6 100644 (file)
@@ -66,7 +66,7 @@ public class OcDirectPairDevice {
     /**
      * Method to get the connectivity type of this resource
      *
-     * @return EnumSet<OcConnectivityType></OcConnectivityType> connectivity type set
+     * @return EnumSet OcConnectivityType connectivity type set
      */
     public EnumSet<OcConnectivityType> getConnectivityTypeSet() {
         return OcConnectivityType.convertToEnumSet(
@@ -80,7 +80,7 @@ public class OcDirectPairDevice {
     /**
      *  Method to get list of all paired devices for a given device.
      *
-     *  @param GetDirectPairedListener Callback function, which will receive the list of direct paired devices.
+     *  @param getDirectPairedListener Callback function, which will receive the list of direct paired devices.
      *  @throws OcException
      */
 
@@ -93,7 +93,7 @@ public class OcDirectPairDevice {
     /**
      *  Method to perform direct pairing between two devices.
      *
-     *  @param DirectPairingListener Callback function, which will be called after
+     *  @param directPairingListener Callback function, which will be called after
      *                                      completion of direct pairing.
      *  @throws OcException
      */
index 871de5e..965f843 100644 (file)
@@ -23,7 +23,7 @@
 package org.iotivity.base;
 
 import org.iotivity.ca.CaInterface;
-import org.iotivity.base.BuildConfig;
+import org.iotivity.base.*;
 
 import java.util.EnumSet;
 import java.util.Iterator;
@@ -509,8 +509,8 @@ public final class OcPlatform {
 
     /**
      * This API registers a resource with the server
-     * <p/>
-     * Note: This API applies to server & client side.
+     * <p>
+     * Note: This API applies to server and client side.
      * </P>
      *
      * @param ocResource The instance of OcResource with all data filled
@@ -528,7 +528,7 @@ public final class OcPlatform {
 
     /**
      * This API registers a resource with the server NOTE: This API applies to server side only.
-     * <p/>
+     * <p>
      * Note: This API applies to server side only.
      * </P>
      *
@@ -594,8 +594,7 @@ public final class OcPlatform {
     /**
      * Set param Info
      *
-     * @param ocDeviceInfo object containing all the device specific information
-     * @throws OcException if failure
+     * @throws OcException on failure
      */
     public static void setPropertyValue(
             int path, String propName, String propValue) throws OcException {
@@ -1032,7 +1031,7 @@ public final class OcPlatform {
      *  Method to find all devices which are eligible for direct pairing and return the list.
      *
      *  @param timeout timeout for discovering direct pair devices.
-     *  @param FindDirectPairingListener Callback function, which will receive the list of direct
+     *  @param onFindDirectPairingListener Callback function, which will receive the list of direct
      *                                  pairable devices.
      *  @throws OcException
      */
@@ -1042,7 +1041,7 @@ public final class OcPlatform {
     /**
      *  Method to get list of all paired devices for a given device.
      *
-     *  @param GetDirectPairedListener Callback function, which will receive the list of direct
+     *  @param onGetDirectPairedListener Callback function, which will receive the list of direct
      *                                 paired devices.
      *  @throws OcException
      */
@@ -1055,7 +1054,7 @@ public final class OcPlatform {
      *  @param peer  Target peer
      *  @param prmType Pairing Method to be used for Pairing
      *  @param pin pin
-     *  @param DirectPairingListener Callback function, which will be called after
+     *  @param onDirectPairingListener Callback function, which will be called after
      *                                      completion of direct pairing.
      *  @throws OcException
      */
@@ -1140,7 +1139,7 @@ public final class OcPlatform {
      * An EntityHandler can be registered via the OcPlatform.registerResource call.
      * Event listeners are notified asynchronously
      *
-     * @note entityhandler callback :
+     * Note: entityhandler callback :
      * When you set specific return value like EntityHandlerResult.OK, SLOW
      * and etc in entity handler callback,
      * ocstack will be not send response automatically to client
@@ -1174,7 +1173,7 @@ public final class OcPlatform {
      * You can only create this object if OCPlatform was initialized to be a Client or
      * Client/Server. Otherwise, this will return an empty shared ptr.
      *
-     * @note For now, OCPlatform SHOULD be initialized to be a Client/Server(Both) for the
+     * Nnote For now, OCPlatform SHOULD be initialized to be a Client/Server(Both) for the
      *       methods of this object to work since device id is not generated on Client mode.
      *
      * @param host                Host IP Address of a account server.
index e896428..314d103 100644 (file)
@@ -41,8 +41,8 @@ public class OcPlatformInfo {
 
     /**
      * construct OcPlatformInfo with mandatory fields which cannot be null
-     * manufacturerName cannot be > 16 chars
-     * manufacturerUrl cannot be > 32 chars
+     * manufacturerName cannot be greater than 16 chars
+     * manufacturerUrl cannot be greater than 32 chars
      */
     public OcPlatformInfo(String platformId, String manufacturerName,
                           String manufacturerUrl) {
index 2130b36..2b1b0e3 100644 (file)
@@ -91,7 +91,7 @@ public class OcProvisioning {
     /**
      * Server API to set Callback for Displaying stack generated PIN.
      *
-     * @param DisplayPinListener Pin callback Listener to be registered.
+     * @param displayPinListener Pin callback Listener to be registered.
      * @throws OcException
      */
     public static native void setDisplayPinListener(DisplayPinListener displayPinListener)
@@ -167,7 +167,7 @@ public class OcProvisioning {
      * Method to get Array of owned and un-owned devices in the current subnet.
      *
      * @param timeout    timeout in sec for the API to return.
-     * @retrun           Array of OcSecureResource class objects.
+     * @return           Array of OcSecureResource class objects.
      *                   be provisioned.
      * @throws OcException
      */
@@ -179,8 +179,8 @@ public class OcProvisioning {
     /**
      *  Method to save the Trust certificate chain to SVR.
      *
-     *  @param byte[]            trustCertChain
-     *  @param EncodingType                          encodingType
+     *  @param trustCertChain
+     *  @param encodingType
      *  @throws OcException
      */
     public static int saveTrustCertChain(byte[] trustCertChain, EncodingType encodingType) throws OcException {
index f9cc04f..30b8eda 100644 (file)
@@ -484,7 +484,7 @@ public class OcResource {
     /**
      * Method to set header options
      *
-     * @param headerOptionList List<OcHeaderOption> where header information(header optionID and
+     * @param headerOptionList List OcHeaderOption where header information(header optionID and
      *                         optionData is passed
      * @throws OcException
      */
@@ -524,7 +524,7 @@ public class OcResource {
     /**
      * Method to get the connectivity type of this resource
      *
-     * @return EnumSet<OcConnectivityType></OcConnectivityType> connectivity type set
+     * @return EnumSet OcConnectivityType connectivity type set
      */
     public EnumSet<OcConnectivityType> getConnectivityTypeSet() {
         return OcConnectivityType.convertToEnumSet(
index 0a6d096..014720b 100644 (file)
@@ -35,7 +35,7 @@ public class OcSecureResource {
     /**
      *  Method to Start Ownership Transfer of an un-owned device.
      *
-     *  @param DoOwnershipTransferListener  Callback function, which will be called after
+     *  @param doOwnershipTransferListener  Callback function, which will be called after
      *                                      completion of ownership Transfer.
      *  @throws OcException
      */
@@ -46,7 +46,7 @@ public class OcSecureResource {
      *  Method removes device credential from all devices in subnet
      *
      *  @param timeout
-     *  @param RemoveDeviceListener         Callback function, which will be called after
+     *  @param removeDeviceListener         Callback function, which will be called after
      *                                      completion of removing device.
      *  @throws OcException
      */
@@ -54,10 +54,10 @@ public class OcSecureResource {
         throws OcException;
 
     /**
-     *  Method removes the credential & relationship between the two devices.
+     *  Method removes the credential and relationship between the two devices.
      *
-     *  @param jobject                      Second device
-     *  @param UnlinkDevicesListener        Callback function, which will be called after
+     *  @param device2                      Second device
+     *  @param unlinkDevicesListener        Callback function, which will be called after
      *                                      completion of removing device.
      *  @throws OcException
      */
@@ -65,12 +65,12 @@ public class OcSecureResource {
         throws OcException;
 
     /**
-     *  Method removes the credential & relationship between the two devices.
+     *  Method removes the credential and relationship between the two devices.
      *
-     *  @param EnumSet<CredType>            OR'ed Cred Types
-     *  @param KeySize                          keySize
-     *  @param Object                       Second device
-     *  @param ProvisionCredentialsListener Callback function, which will be called after
+     *  @param credTypeSet OR'ed Cred Types
+     *  @param keysize
+     *  @param device2 Second device
+     *  @param provisionCredentialsListener Callback function, which will be called after
      *                                      completion of removing device.
      *  @throws OcException
      */
@@ -92,9 +92,9 @@ public class OcSecureResource {
     /**
      *  Method to provision the Trust certificate chain to secured device.
      *
-     *  @param EnumSet<CredType>            OR'ed Cred Types
-     *  @param int                          credId
-     *  @param ProvisionTrustCertChainListener Callback function, which will be called after
+     *  @param credTypeSet           OR'ed Cred Types
+     *  @param credId
+     *  @param provisionTrustCertChainListener Callback function, which will be called after
      *                                      proviosion trust certificate chain.
      *  @throws OcException
      */
@@ -116,8 +116,8 @@ public class OcSecureResource {
     /**
      *  Method send ACL information to resource.
      *
-     *  @param jobject                      Acl
-     *  @param ProvisionAclListener         Callback function, which will be called after
+     *  @param acl object
+     *  @param provisionACLListener         Callback function, which will be called after
      *                                      completion of removing device.
      *  @throws OcException
      */
@@ -129,12 +129,12 @@ public class OcSecureResource {
      *  Method provisions credentials between two devices and ACLs for the devices who
      *  act as a server.
      *
-     *  @param EnumSet<CredType>            OR'ed Cred Types
-     *  @param KeySize                      keySize
-     *  @param Object                       First acl
-     *  @param Object                       Second device
-     *  @param Object                       Second acl
-     *  @param ProvisionPairwiseDevicesListener Callback function, which will be called after
+     *  @param credTypeSet OR'ed Cred Types
+     *  @param keysize keySize
+     *  @param acl1 First acl
+     *  @param device2 Second device
+     *  @param acl2 Second acl
+     *  @param provisionPairwiseDevicesListener Callback function, which will be called after
      *                                      completion of removing device.
      *  @throws OcException
      */
@@ -161,7 +161,7 @@ public class OcSecureResource {
      *  @param pdacls                   Array of Device Pairing Access Control List
      *  @param type                     List of supported OcPrmType
      *  @param edp                      enable (1) / disable (0)
-     *  @param ProvisionDirectPairing   Callback function, which will be called after completion
+     *  @param provisionDirectPairingListener   Callback function, which will be called after completion
      *                                  of Direct Pairing.
      *  @throws OcException
      */
index 705565b..5e10e86 100644 (file)
@@ -27,7 +27,7 @@ package org.iotivity.base;
  */
 public enum ResourceProperty {
     /**
-     * When none of the bits are set, the resource is non-discoverable &
+     * When none of the bits are set, the resource is non-discoverable and
      * non-observable by the client.
      */
     RES_PROP_NONE(0),
index 84ba56f..fea90ba 100644 (file)
@@ -180,7 +180,7 @@ public class CaInterface {
 
     /**
      *  set BLE scan interval time and working count.
-     *  scanning logic (start scan -> stop scan) will be worked repeatly for workingCount.
+     *  scanning logic ("start scan" to "stop scan") will be worked repeatly for workingCount.
      *  and if you choose '0' value for workingCount parameter,
      *  scanning will be worked continually as interval time.
      *  @param intervalTime                  interval time(Seconds).
index 1b0c7db..7757320 100755 (executable)
@@ -24,8 +24,8 @@ import org.iotivity.service.easysetup.mediator.enums.ESCloudProvState;
 import org.iotivity.service.easysetup.mediator.enums.ESResult;
 
 /**
- * This interface facilitates Application to get progress & result of Cloud provisioning
- * process in easy setup
+ * This interface facilitates Application
+ * to get progress and result of Cloud provisioning process in easy setup
  */
 public class CloudPropProvisioningStatus
 {
@@ -35,10 +35,10 @@ public class CloudPropProvisioningStatus
      * Constructor
      *
      * @param result a result of cloud property provisioning
-     * @param state a state of cloud property provisioning.
+     * <p> state a state of cloud property provisioning.
      *              ES_CLOUD_PROVISIONING_ERROR(-1), ES_CLOUD_PROVISIONING_SUCCESS(0),
      *              ES_CLOUD_ENROLLEE_FOUND(1), ES_CLOUD_ENROLLEE_NOT_FOUND(2)
-     *
+     * </p>
      * @see ESCloudProvState
      */
     public CloudPropProvisioningStatus(int result)
@@ -49,7 +49,7 @@ public class CloudPropProvisioningStatus
     /**
      * Get a result of cloud property provisioning
      *
-     * @result ESResult a result of cloud property provisioning
+     * @return ESResult a result of cloud property provisioning
      */
     public ESResult getESResult()
     {
index df5318f..d48f475 100755 (executable)
@@ -23,9 +23,8 @@ package org.iotivity.service.ns.common;
 import android.util.Log;
 
 /**
-  * @class   MediaContents
-  * @brief   This class provides implementation of Notification MediaContents object.
-  */
+ * This class provides implementation of Notification MediaContents object.
+ */
 public class MediaContents
 {
     private static final String LOG_TAG = "NotificationService_MediaContents";
index f2f2057..2fedd60 100755 (executable)
@@ -24,9 +24,8 @@ import android.util.Log;
 import org.iotivity.base.OcRepresentation;
 
 /**
-  * @class   Message
-  * @brief   This class provides implementation of Notification Message object.
-  */
+ *  This class provides implementation of Notification Message object.
+ */
 public class Message
 {
     private static final String LOG_TAG = "NotificationService_Message";
index f0b55bb..781ad77 100755 (executable)
@@ -23,9 +23,8 @@ package org.iotivity.service.ns.common;
 import android.util.Log;
 
 /**
-  * @class   SyncInfo
-  * @brief   This class provides implementation of Notification SyncInfo object.
-  */
+ * Implementation of Notification SyncInfo object.
+ */
 public class SyncInfo
 {
     private static final String LOG_TAG = "NotificationService_SyncInfo";
index 2ac3556..f78febb 100644 (file)
@@ -21,9 +21,8 @@
 package org.iotivity.service.ns.common;
 import android.util.Log;
 /**
-  * @class   Topic
-  * @brief   This class provides implementation of Notification Topic object.
-  */
+ * Provides implementation of Notification Topic object.
+ */
 public class Topic
 {
     private static final String LOG_TAG = "NotificationService_Topic";
index 8572ccc..942859d 100644 (file)
@@ -23,9 +23,8 @@ import android.util.Log;
 import java.util.Vector;
 import java.util.Iterator;
 /**
-  * @class   TopicsList
-  * @brief   This class provides implementation of Topics List
-  */
+ * provides implementation of Topics List
+ */
 public class TopicsList
 {
     private static final String LOG_TAG = "NotificationService_TopicList";
index 58bf57a..96047a3 100755 (executable)
@@ -25,8 +25,7 @@ import org.iotivity.service.ns.common.*;
 import java.util.Vector;
 
 /**
-  * @class   ConsumerService
-  * @brief   This class provides a set of Java APIs for Notification Consumer.
+  * This class provides a set of Java APIs for Notification Consumer.
   */
 public class ConsumerService
 {
@@ -82,8 +81,7 @@ public class ConsumerService
 
     /**
       * Request to publish resource to cloud server
-      * @param[in]  serverAddress combined with IP address and port number using delimiter :
-      * @return  result code
+      * @param serverAddress combined with IP address and port number using delimiter [in]
       */
     public void enableRemoteService(String serverAddress) throws NSException
     {
index 3dda268..7867bf8 100755 (executable)
@@ -25,8 +25,7 @@ import org.iotivity.service.ns.common.*;
 import java.util.Vector;
 
 /**
-  * @class   Provider
-  * @brief   This class provides implementation of Notification Provider object.
+  * This class provides implementation of Notification Provider object.
   */
 public class Provider
 {
index 5abf280..b4900f6 100644 (file)
@@ -21,8 +21,7 @@ package org.iotivity.service.ns.provider;
 import org.iotivity.service.ns.common.*;
 import java.util.Vector;
 /**
-  * @class   Consumer
-  * @brief   This class provides implementation of Notification Consumer object.
+  * Provides implementation of Notification Consumer object.
   */
 public class Consumer
 {
@@ -90,4 +89,4 @@ public class Consumer
     public native int  nativeSetConsumerTopic(String consumerId, String topicName) throws NSException;
     public native int  nativeUnsetConsumerTopic(String consumerId, String topicName) throws NSException;
     public native TopicsList  nativeGetConsumerTopicList(String consumerId) throws NSException;
-}
\ No newline at end of file
+}
index b15ba46..46a46cc 100644 (file)
@@ -21,9 +21,8 @@ package org.iotivity.service.ns.provider;
 import org.iotivity.service.ns.common.*;
 import java.util.Vector;
 /**
-  * @class   ProviderService
-  * @brief   This class provides a set of Java APIs for Notification ProviderService.
-  */
+ * Provides a set of Java APIs for Notification ProviderService.
+ */
 public class ProviderService
 {
 
@@ -119,7 +118,7 @@ public class ProviderService
 
     /**
       * Request to publish resource to cloud server
-      * @param[in]  servAdd combined with IP address and port number using delimiter :
+      * @param servAdd combined with IP address and port number using delimiter [in]
       * @return  result code
       */
     public int   enableRemoteService(String servAdd) throws NSException
@@ -129,7 +128,7 @@ public class ProviderService
 
     /**
       * Request to cancel remote service using cloud server
-      * @param[in]  servAdd combined with IP address and port number using delimiter :
+      * @param servAdd combined with IP address and port number using delimiter :
       * @return  result code
       */
     public int  disableRemoteService(String servAdd) throws NSException
index 86b0b17..93304f7 100644 (file)
@@ -107,8 +107,6 @@ public abstract class BundleResource {
     /**
      * Set the attribute (map to a send command for the according protocol)
      * 
-     * @param key
-     *            name of the attribute to be set
      * @param value
      *            new value of the attribute
      */
@@ -137,11 +135,6 @@ public abstract class BundleResource {
 
     /**
      * Retrieve the attribute (map to read command)
-     * 
-     * @param key
-     *            name of the attribute to be set
-     * @param value
-     *            new value of the attribute
      */
     public abstract RcsResourceAttributes handleGetAttributesRequest();
 
index 87bb7e4..f8ae251 100644 (file)
@@ -105,7 +105,7 @@ public final class RcsResourceAttributes
      * @param key
      *            key with which the specified value is to be associated
      *
-     * @param value
+     * @param object
      *            value to be associated with the specified key
      *
      * @throws NullPointerException
index da26675..0564904 100644 (file)
@@ -230,7 +230,7 @@ public class RcsResourceContainer implements RcsResourceContainerBundleAPI {
     /**
      * API for getting the list of all bundles in the container
      *
-     * @return list<RCSBundleInfo> -List of BundleInfo objects each associated
+     * @return List of BundleInfo objects each associated
      *         with a bundle
      *
      *         {@link RcsBundleInfo}
@@ -394,7 +394,7 @@ public class RcsResourceContainer implements RcsResourceContainerBundleAPI {
      * @param bundleId
      *            Id of the Bundle
      *
-     * @return List<String> All the bundle resources
+     * @return List of all the bundle resources
      */
     public List<String> listBundleResources(String bundleId) {
         if(bundleId == null || bundleId.isEmpty()){
@@ -435,7 +435,7 @@ public class RcsResourceContainer implements RcsResourceContainerBundleAPI {
      * @param bundleId
      *            Id of the Bundle
      *
-     * @return List<ResourceConfig> All the resource configurations for the given bundle
+     * @return All the resource configurations for the given bundle
      */
     public List<ResourceConfig> getConfiguredBundleResources(String bundleId) {
         Log.d(TAG, "getConfiguredBundleResource " + bundleId);
index 8151102..9523736 100644 (file)
@@ -134,7 +134,7 @@ public final class RcsResourceAttributes extends RcsObject {
      * @param key
      *            key with which the specified value is to be associated
      *
-     * @param value
+     * @param object
      *            value to be associated with the specified key
      *
      * @throws NullPointerException
index 915004e..8734653 100644 (file)
@@ -137,9 +137,9 @@ public final class RcsResourceObject extends RcsObject {
         /**
          * Register a resource and returns a RCSResourceObject.
          *
-         * @throws RcsPlatformException
+         * throws RcsPlatformException
          *             If registering a resource is failed.
-         *
+         * (TODO check)
          */
         public RcsResourceObject build() {
             return nativeBuild(mUri, mType, mInterface, mIsObservable,
@@ -224,7 +224,7 @@ public final class RcsResourceObject extends RcsObject {
          *
          * @throws RcsIllegalStateException
          *             if not in locked state
-         * @throws RcsPlatformException
+         * or RcsPlatformException
          *             if auto notify failed
          */
         public void apply() throws RcsIllegalStateException {