Sonar fixes in "appc-netconf-adapter-bundle"
[appc.git] / appc-adapters / appc-netconf-adapter / appc-netconf-adapter-bundle / src / main / java / org / onap / appc / adapter / netconf / internal / NetconfMessage.java
index 700a51b..40e0096 100644 (file)
@@ -47,8 +47,9 @@ class NetconfMessage {
         }
     }
 
-    void append(byte[] bytes, int start, int end) {
+    void append(byte[] bytes, int start, int finish) {
         boolean eomFound = false;
+        int end = finish;
         for(int i = start; i < end; i++) {
             if(bytes[i] == EOM.charAt(eomNotch)) {
                 // advance notch
@@ -76,7 +77,7 @@ class NetconfMessage {
     }
 
     boolean isCompleted() {
-        return (text != null);
+        return text != null;
     }
 
     byte[] getFrame() {