Fix checkstyle violations in sal-binding-broker
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / java / org / opendaylight / controller / md / sal / binding / impl / GetValueRouteContextExtractor.java
index d5d5a72d4decc1f86f9d0e4694840aca6e41d41f..f436c5ea9f3ad43b3089f7f025f020165e4a1a4d 100644 (file)
@@ -1,10 +1,11 @@
 /*
  * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
  *
- * This program and the accompanying materials are made available under the terms of the Eclipse
- * Public License v1.0 which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
+
 package org.opendaylight.controller.md.sal.binding.impl;
 
 import com.google.common.base.Throwables;
@@ -18,7 +19,7 @@ import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
 
 final class GetValueRouteContextExtractor extends ContextReferenceExtractor {
 
-    private final static Lookup PUBLIC_LOOKUP = MethodHandles.publicLookup();
+    private static final Lookup PUBLIC_LOOKUP = MethodHandles.publicLookup();
     private final MethodHandle contextHandle;
     private final MethodHandle valueHandle;
 
@@ -35,6 +36,7 @@ final class GetValueRouteContextExtractor extends ContextReferenceExtractor {
     }
 
     @Override
+    @SuppressWarnings("checkstyle:IllegalCatch")
     InstanceIdentifier<?> extract(final DataObject obj) {
         try {
             final Object ctx = contextHandle.invokeExact(obj);
@@ -42,10 +44,8 @@ final class GetValueRouteContextExtractor extends ContextReferenceExtractor {
                 return (InstanceIdentifier<?>) valueHandle.invokeExact(ctx);
             }
             return null;
-        } catch (final Throwable e) {
+        } catch (Throwable e) {
             throw Throwables.propagate(e);
         }
     }
-
-
 }