From 060bc1d361890320319f8b0ab30ec3ba905c57bf Mon Sep 17 00:00:00 2001 From: Joseph Morrow Date: Fri, 29 May 2015 17:28:05 -0400 Subject: [PATCH] Fixed template issue on Android for arch types armeabi or x86. 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 Reviewed-on: https://gerrit.iotivity.org/gerrit/1153 Reviewed-by: Erich Keane Tested-by: jenkins-iotivity --- .../base/src/main/java/org/iotivity/base/OcRepresentation.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/android_api/base/src/main/java/org/iotivity/base/OcRepresentation.java b/android/android_api/base/src/main/java/org/iotivity/base/OcRepresentation.java index 98ec0bc..23daba0 100644 --- a/android/android_api/base/src/main/java/org/iotivity/base/OcRepresentation.java +++ b/android/android_api/base/src/main/java/org/iotivity/base/OcRepresentation.java @@ -186,7 +186,7 @@ public class OcRepresentation { */ @Deprecated public int getValueInt(String key) { - int value = 0; + Integer value = 0; try { value = this.getValue(key); } catch (OcException e) { @@ -201,7 +201,7 @@ public class OcRepresentation { */ @Deprecated public boolean getValueBool(String key) { - boolean value = false; + Boolean value = false; try { value = this.getValue(key); } catch (OcException e) { -- 2.7.4