Fix checkstyle in mdsal-binding2-dom-codec
[mdsal.git] / binding2 / mdsal-binding2-dom-codec / src / main / java / org / opendaylight / mdsal / binding / javav2 / dom / codec / impl / context / ValueContext.java
index 1698867d0afff473ccd6df57717ed3c510abc606..1be20873673f81b30855f1b05c4d3e91c96c922e 100644 (file)
@@ -41,7 +41,8 @@ public final class ValueContext {
         try {
             getter = MethodHandles.publicLookup().unreflect(identifier.getMethod(getterName)).asType(OBJECT_METHOD);
         } catch (IllegalAccessException | NoSuchMethodException | SecurityException e) {
-            throw new IllegalStateException(String.format("Cannot find method %s in class %s", getterName, identifier), e);
+            throw new IllegalStateException(
+                String.format("Cannot find method %s in class %s", getterName, identifier), e);
         }
         this.identifier = identifier;
         codec = leaf.getValueCodec();
@@ -54,6 +55,7 @@ public final class ValueContext {
      *            - input object
      * @return serialized invoked object
      */
+    @SuppressWarnings("checkstyle:illegalCatch")
     public Object getAndSerialize(final Object obj) {
         final Object value;
         try {