X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-binding-broker%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fbinding%2Fimpl%2FGetValueRouteContextExtractor.java;h=f436c5ea9f3ad43b3089f7f025f020165e4a1a4d;hp=d5d5a72d4decc1f86f9d0e4694840aca6e41d41f;hb=03c13bd8a8bb89a729d739eb2fcd501a4dfa5439;hpb=c2fbe8c5fa6d00473aa49b50b557ead738dc6a44 diff --git a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/impl/GetValueRouteContextExtractor.java b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/impl/GetValueRouteContextExtractor.java index d5d5a72d4d..f436c5ea9f 100644 --- a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/impl/GetValueRouteContextExtractor.java +++ b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/impl/GetValueRouteContextExtractor.java @@ -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); } } - - }