From dca55c73852e621175bcf44800ee9b19cd95178f Mon Sep 17 00:00:00 2001 From: ayyoob Date: Thu, 28 Jul 2016 15:40:55 +0530 Subject: [PATCH] fixed formatting issues and removed storing error message --- .../ConnectedCupDeviceMgtPluginException.java | 13 ------------- .../plugin/impl/dao/util/ConnectedCupUtils.java | 4 ++-- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/modules/samples/connectedcup/component/plugin/src/main/java/org/coffeeking/connectedcup/plugin/exception/ConnectedCupDeviceMgtPluginException.java b/modules/samples/connectedcup/component/plugin/src/main/java/org/coffeeking/connectedcup/plugin/exception/ConnectedCupDeviceMgtPluginException.java index 8428559d..4c9b36ac 100644 --- a/modules/samples/connectedcup/component/plugin/src/main/java/org/coffeeking/connectedcup/plugin/exception/ConnectedCupDeviceMgtPluginException.java +++ b/modules/samples/connectedcup/component/plugin/src/main/java/org/coffeeking/connectedcup/plugin/exception/ConnectedCupDeviceMgtPluginException.java @@ -20,29 +20,16 @@ package org.coffeeking.connectedcup.plugin.exception; public class ConnectedCupDeviceMgtPluginException extends Exception{ - private String errorMessage; - - public String getErrorMessage() { - return errorMessage; - } - - public void setErrorMessage(String errorMessage) { - this.errorMessage = errorMessage; - } - public ConnectedCupDeviceMgtPluginException(String msg, Exception nestedEx) { super(msg, nestedEx); - setErrorMessage(msg); } public ConnectedCupDeviceMgtPluginException(String message, Throwable cause) { super(message, cause); - setErrorMessage(message); } public ConnectedCupDeviceMgtPluginException(String msg) { super(msg); - setErrorMessage(msg); } public ConnectedCupDeviceMgtPluginException() { diff --git a/modules/samples/connectedcup/component/plugin/src/main/java/org/coffeeking/connectedcup/plugin/impl/dao/util/ConnectedCupUtils.java b/modules/samples/connectedcup/component/plugin/src/main/java/org/coffeeking/connectedcup/plugin/impl/dao/util/ConnectedCupUtils.java index fce7c509..9c25f256 100644 --- a/modules/samples/connectedcup/component/plugin/src/main/java/org/coffeeking/connectedcup/plugin/impl/dao/util/ConnectedCupUtils.java +++ b/modules/samples/connectedcup/component/plugin/src/main/java/org/coffeeking/connectedcup/plugin/impl/dao/util/ConnectedCupUtils.java @@ -38,8 +38,8 @@ public class ConnectedCupUtils { public static String getDeviceProperty(List deviceProperties, String propertyKey) { String deviceProperty = ""; - for(Device.Property property :deviceProperties){ - if(propertyKey.equals(property.getName())){ + for (Device.Property property : deviceProperties) { + if (propertyKey.equals(property.getName())) { deviceProperty = property.getValue(); } }