X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=openflowplugin%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fopenflowplugin%2Fopenflow%2Fmd%2Fcore%2Fsal%2Fconvertor%2Faction%2FActionSetNwDstReactor.java;h=1e5f8637987836eab3bcb44a43bdc8b592d5ae93;hb=9fe23c3d6e9db28fa7ad14a1949b3add13b9015d;hp=7213335083903a95c67ab9f4e64a733c502cee83;hpb=15924783882b4c31238141af8495ee62b08fb6f8;p=openflowplugin.git diff --git a/openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/action/ActionSetNwDstReactor.java b/openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/action/ActionSetNwDstReactor.java index 7213335083..1e5f863798 100644 --- a/openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/action/ActionSetNwDstReactor.java +++ b/openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/action/ActionSetNwDstReactor.java @@ -18,36 +18,33 @@ import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.common.Res import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.SetNwDstActionCase; /** - * + * */ public class ActionSetNwDstReactor extends ConvertReactor { - - private static ActionSetNwDstReactor instance; - + + private static ActionSetNwDstReactor INSTANCE = new ActionSetNwDstReactor(); + private ActionSetNwDstReactor() { //NOOP } - + /** * @return singleton */ - public static synchronized ActionSetNwDstReactor getInstance() { - if (instance == null) { - instance = new ActionSetNwDstReactor(); - } - return instance; + public static ActionSetNwDstReactor getInstance() { + return INSTANCE; } - + @Override - protected void initMappings(Map> conversions, - Map> injections) { + protected void initMappings(final Map> conversions, + final Map> injections) { ActionSetNwDstReactorMappingFactory.addSetNwDstConvertors(conversions); ActionSetNwDstReactorMappingFactory.addSetNwDstInjectors(injections); } - + @Override - protected InjectionKey buildInjectionKey(short version, - Object convertedItem, Object target) { + protected InjectionKey buildInjectionKey(final short version, + final Object convertedItem, final Object target) { InjectionResultTargetKey key = null; if (convertedItem != null) { key = new InjectionResultTargetKey(version, target.getClass().getName(), convertedItem.getClass().getName());