BUG 5031:
[bgpcep.git] / bgp / linkstate / src / test / java / org / opendaylight / protocol / bgp / linkstate / ParserTest.java
index 9d7d77d99fd343465a6ab88d184821e75ab22c8f..b212b5b740e4d484177d42d243a0559ab6d69d05 100644 (file)
@@ -98,11 +98,11 @@ public class ParserTest {
     /**
      * Used by other tests as well
      */
-    static final List<byte[]> inputBytes = new ArrayList<byte[]>();
+    private static final List<byte[]> inputBytes = new ArrayList<>();
 
-    private static int COUNTER = 4;
+    private static final int COUNTER = 4;
 
-    private static int MAX_SIZE = 300;
+    private static final int MAX_SIZE = 300;
 
     private static BGPUpdateMessageParser updateParser;
 
@@ -119,7 +119,7 @@ public class ParserTest {
                 }
                 final ByteArrayOutputStream bis = new ByteArrayOutputStream();
                 final byte[] data = new byte[MAX_SIZE];
-                int nRead = 0;
+                int nRead;
                 while ((nRead = is.read(data, 0, data.length)) != -1) {
                     bis.write(data, 0, nRead);
                 }