Removal of unused variables
authorprakash.e <prakash.e@huawei.com>
Tue, 9 Jan 2018 15:44:18 +0000 (21:14 +0530)
committerprakash.e <prakash.e@huawei.com>
Tue, 9 Jan 2018 15:44:18 +0000 (21:14 +0530)
*Romoved unused variables and code changes for performance improvement

Change-Id: Ibe1993b750653d24379ffcc3638b71f6cefcaa6b
Issue-ID: CCSDK-151
Signed-off-by: prakash.e <prakash.e@huawei.com>
ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncUebCallback.java

index 5041b4d..7c4f35a 100644 (file)
@@ -875,7 +875,7 @@ public class SdncUebCallback implements INotificationCallback {
 
         DistributionStatusEnum deployResult;
 
-        StringBuffer msgBuffer = new StringBuffer();
+        StringBuilder msgBuffer = new StringBuilder();
 
 
         String namespace = config.getAsdcApiNamespace();
@@ -1047,8 +1047,6 @@ public class SdncUebCallback implements INotificationCallback {
 
     private File applyXslts(File srcFile) {
 
-        Document doc;
-
         File inFile = srcFile;
         File outFile = null;
 
@@ -1093,7 +1091,7 @@ public class SdncUebCallback implements INotificationCallback {
                if (str == null) {
                        str = "";
                }
-        StringBuffer retval = new StringBuffer();
+        StringBuilder retval = new StringBuilder();
 
         for (int i = 0 ; i < str.length() ; i++) {
             char curchar = str.charAt(i);