From fceccb3280f245374b6b178d291ef2751bb0c269 Mon Sep 17 00:00:00 2001 From: prabathabey Date: Mon, 15 Dec 2014 11:19:42 +0530 Subject: [PATCH] Fixing build issues introduced by introducing a static inner class to keep track of device related properties --- .../cdm/api/android/util/AndroidAPIUtils.java | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/product/modules/agents/android/jax-rs/src/main/java/cdm/api/android/util/AndroidAPIUtils.java b/product/modules/agents/android/jax-rs/src/main/java/cdm/api/android/util/AndroidAPIUtils.java index 7d7521470..c4b1e7f02 100644 --- a/product/modules/agents/android/jax-rs/src/main/java/cdm/api/android/util/AndroidAPIUtils.java +++ b/product/modules/agents/android/jax-rs/src/main/java/cdm/api/android/util/AndroidAPIUtils.java @@ -63,7 +63,7 @@ public class AndroidAPIUtils { } device.setProperties(parseProperties(properties)); }else{ - device.setProperties(new ArrayList(0)); + device.setProperties(new ArrayList(0)); } if (obj.get(AndroidConstants.DeviceConstants.DEVICE_FEATURES_KEY) != null) { @@ -78,8 +78,8 @@ public class AndroidAPIUtils { return device; } - private static List parseProperties(JsonObject properties) { - List propertyList = new ArrayList(0); + private static List parseProperties(JsonObject properties) { + List propertyList = new ArrayList(0); for (Map.Entry entry : properties.entrySet()) { propertyList.add(parseProperty(entry.getKey(), entry.getValue())); } @@ -93,20 +93,18 @@ public class AndroidAPIUtils { } private static List parseFeatures(JsonObject features) { - List featureList = new ArrayList(0); - return featureList; + return new ArrayList(0); } - private static Property parseProperty(String property, JsonElement value) { - Property prop = new Property(); + private static Device.Property parseProperty(String property, JsonElement value) { + Device.Property prop = new Device.Property(); prop.setName(property); prop.setValue(value.getAsString()); return prop; } private static Feature parseFeature(JsonElement featureElement) { - Feature feature = new Feature(); - return feature; + return new Feature(); } public static DeviceIdentifier convertToDeviceIdentifierObject(String deviceId) {