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%2FContextReferenceExtractor.java;h=84f12444e5a9473cced4d79f3d0d289c9245fe21;hp=4653ca399eeab995bd5890cb1a4dd7a41c9075d0;hb=b830d5ede22e323fe724cd747fe99280dfa2240d;hpb=c2fbe8c5fa6d00473aa49b50b557ead738dc6a44 diff --git a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/impl/ContextReferenceExtractor.java b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/impl/ContextReferenceExtractor.java index 4653ca399e..84f12444e5 100644 --- a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/impl/ContextReferenceExtractor.java +++ b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/impl/ContextReferenceExtractor.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.cache.CacheBuilder; @@ -60,7 +61,8 @@ abstract class ContextReferenceExtractor { */ abstract @Nullable InstanceIdentifier extract(DataObject obj); - private static @Nonnull ContextReferenceExtractor create(final Class key) { + @Nonnull + private static ContextReferenceExtractor create(final Class key) { final Method contextGetter = getContextGetter(key); if (contextGetter == null) { return NULL_EXTRACTOR; @@ -82,7 +84,8 @@ abstract class ContextReferenceExtractor { return NULL_EXTRACTOR; } - private static @Nullable Method findGetValueMethod(final Class type, final Class returnType) { + @Nullable + private static Method findGetValueMethod(final Class type, final Class returnType) { try { final Method method = type.getMethod(GET_VALUE_NAME); if(returnType.equals(method.getReturnType())) {