Removing clumsy code smells and adding missing JettyFilter test
[dmaap/datarouter.git] / datarouter-prov / src / main / java / org / onap / dmaap / datarouter / provisioning / utils / RLEBitSet.java
index bc1919f..7914c81 100644 (file)
@@ -144,7 +144,7 @@ public class RLEBitSet {
      * Creates a new bit set. All bits are initially <code>false</code>.\r
      */\r
     public RLEBitSet() {\r
-        bitsets = new TreeSet<RLE>();\r
+        bitsets = new TreeSet<>();\r
     }\r
 \r
     /**\r
@@ -153,7 +153,7 @@ public class RLEBitSet {
      * @param s the initialization String\r
      */\r
     public RLEBitSet(String s) {\r
-        bitsets = new TreeSet<RLE>();\r
+        bitsets = new TreeSet<>();\r
         set(s);\r
     }\r
 \r
@@ -196,7 +196,7 @@ public class RLEBitSet {
      * @throws NumberFormatException     - if a number is incorrectly formatted\r
      * @throws IndexOutOfBoundsException - if an index is negative\r
      */\r
-    public void set(String s) throws NumberFormatException {\r
+    public void set(String s) {\r
         s = s.trim();\r
         if (!s.isEmpty()) {\r
             for (String s2 : s.split("[, \n]+")) {\r
@@ -280,7 +280,7 @@ public class RLEBitSet {
     public void clear(long from, long to) {\r
         checkRange(from, to);\r
         RLE newbits = new RLE(from, to - from);\r
-        List<RLE> newranges = new ArrayList<RLE>();\r
+        List<RLE> newranges = new ArrayList<>();\r
         synchronized (bitsets) {\r
             for (RLE bs : bitsets) {\r
                 if (bs.intersects(newbits)) {\r