Fixed template issue on Android for arch types armeabi or x86. 53/1153/4
authorJoseph Morrow <joseph.l.morrow@intel.com>
Fri, 29 May 2015 21:28:05 +0000 (17:28 -0400)
committerErich Keane <erich.keane@intel.com>
Fri, 29 May 2015 23:15:26 +0000 (23:15 +0000)
The issue arises because Jave templates expect the Object
type to be used and not the primitive type.Other compilers
other than armeabi and x86 (at least reproducible for
armeabi-v7a) properly convert the primitive types to their
object form.

Change-Id: I6f4916b2e6d6699c58018baf25269c369eee01a5
Signed-off-by: Joseph Morrow <joseph.l.morrow@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1153
Reviewed-by: Erich Keane <erich.keane@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
android/android_api/base/src/main/java/org/iotivity/base/OcRepresentation.java

index 98ec0bc..23daba0 100644 (file)
@@ -186,7 +186,7 @@ public class OcRepresentation {
      */\r
     @Deprecated\r
     public int getValueInt(String key) {\r
-        int value = 0;\r
+        Integer value = 0;\r
         try {\r
             value = this.getValue(key);\r
         } catch (OcException e) {\r
@@ -201,7 +201,7 @@ public class OcRepresentation {
      */\r
     @Deprecated\r
     public boolean getValueBool(String key) {\r
-        boolean value = false;\r
+        Boolean value = false;\r
         try {\r
             value = this.getValue(key);\r
         } catch (OcException e) {\r