Fix checkstyle in mdsal-binding-dom-codec
[mdsal.git] / binding / mdsal-binding-dom-codec / src / main / java / org / opendaylight / mdsal / binding / dom / codec / impl / BitsCodec.java
index 267c4df6e5e3cd12fbc43323d83fb7d3eb7ad2b8..68d83e85f56b80d47764b5e5a99dc075f558307f 100644 (file)
@@ -70,19 +70,19 @@ final class BitsCodec extends ReflectionBasedCodec implements SchemaUnawareCodec
     }
 
     @Override
+    @SuppressWarnings("checkstyle:illegalCatch")
     public Object deserialize(final Object input) {
         Preconditions.checkArgument(input instanceof Set);
         @SuppressWarnings("unchecked")
         final Set<String> casted = (Set<String>) input;
 
         /*
-         * We can do this walk based on field set sorted by name,
-         * since constructor arguments in Java Binding are sorted by name.
+         * We can do this walk based on field set sorted by name, since constructor arguments in Java Binding are
+         * sorted by name.
          *
-         * This means we will construct correct array for construction
-         * of bits object.
+         * This means we will construct correct array for construction of bits object.
          */
-        final Boolean args[] = new Boolean[ctorArgs.size()];
+        final Boolean[] args = new Boolean[ctorArgs.size()];
         int currentArg = 0;
         for (String value : ctorArgs) {
             args[currentArg++] = casted.contains(value);
@@ -101,7 +101,7 @@ final class BitsCodec extends ReflectionBasedCodec implements SchemaUnawareCodec
         for (Entry<String, Method> valueGet : getters.entrySet()) {
             final Boolean value;
             try {
-                 value = (Boolean) valueGet.getValue().invoke(input);
+                value = (Boolean) valueGet.getValue().invoke(input);
             } catch (IllegalAccessException | InvocationTargetException e) {
                 throw new IllegalArgumentException("Failed to get bit " + valueGet.getKey(), e);
             }