From: Larry Sachs Date: Wed, 9 Aug 2017 16:53:57 +0000 (-0700) Subject: [IOT-2594] Add 'throws' to native api declaration X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=32fbba383db6e14c47002382d618e71c2b415a99;p=platform%2Fupstream%2Fiotivity.git [IOT-2594] Add 'throws' to native api declaration getLinkedDevices() native api declaration in OcSecureResource.java requires a throws clause in order to catch a possible exception from the jni implementation layer. Change-Id: Ic1e02b0d0f2980c1fd10d59ed48575ea2d7e6734 Signed-off-by: Larry Sachs Reviewed-on: https://gerrit.iotivity.org/gerrit/21839 Tested-by: jenkins-iotivity Reviewed-by: George Nash Reviewed-by: Rick Bell --- diff --git a/java/common/src/main/java/org/iotivity/base/OcSecureResource.java b/java/common/src/main/java/org/iotivity/base/OcSecureResource.java index 8437f2d..06340cd 100644 --- a/java/common/src/main/java/org/iotivity/base/OcSecureResource.java +++ b/java/common/src/main/java/org/iotivity/base/OcSecureResource.java @@ -384,8 +384,10 @@ public class OcSecureResource { /** Method to get List of device ID of devices linked with invoking device. * * @return Sring List List of device id's of linked devices. + * @throws OcException Failed to get linked devices. + * Use OcException.GetErrorCode() for more details. */ - public native List getLinkedDevices(); + public native List getLinkedDevices() throws OcException; /** * Method to get IP address of sercure discovered device.