X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fconfig%2Fconfig-manager%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fmanager%2Fimpl%2Fdynamicmbean%2FAbstractDynamicWrapper.java;h=638165a46c709c142c873c834014faf34ebf1572;hp=25f7e2de9f425e4124e4ae0cd2a1233efbfca0cc;hb=cbcc2b61265e903959f11d44c292771e76b3926e;hpb=e2f5a1f1f1b917620ba4ade6c024f5ee3d202036 diff --git a/opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/dynamicmbean/AbstractDynamicWrapper.java b/opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/dynamicmbean/AbstractDynamicWrapper.java index 25f7e2de9f..638165a46c 100644 --- a/opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/dynamicmbean/AbstractDynamicWrapper.java +++ b/opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/dynamicmbean/AbstractDynamicWrapper.java @@ -133,7 +133,7 @@ abstract class AbstractDynamicWrapper implements DynamicMBeanModuleWrapper { try { configMBeanServer.addNotificationListener( MBeanServerDelegate.DELEGATE_NAME, listener, null, null); - } catch (InstanceNotFoundException e) { + } catch (final InstanceNotFoundException e) { throw new RuntimeException("Could not add notification listener", e); } return listener; @@ -201,7 +201,7 @@ abstract class AbstractDynamicWrapper implements DynamicMBeanModuleWrapper { try { setter = module.getClass().getMethod(method.getName(), method.getParameterTypes()); - } catch (NoSuchMethodException e) { + } catch (final NoSuchMethodException e) { throw new RuntimeException("No such method on " + moduleIdentifier, e); } @@ -240,7 +240,7 @@ abstract class AbstractDynamicWrapper implements DynamicMBeanModuleWrapper { try { obj = internalServer .getAttribute(objectNameInternal, attributeName); - } catch (InstanceNotFoundException e) { + } catch (final InstanceNotFoundException e) { new MBeanException(e); } @@ -315,7 +315,7 @@ abstract class AbstractDynamicWrapper implements DynamicMBeanModuleWrapper { Object value = getAttribute(attributeName); result.add(new Attribute(attributeName, value)); - } catch (Exception e) { + } catch (final Exception e) { LOG.debug("Getting attribute {} failed", attributeName, e); } } @@ -329,7 +329,7 @@ abstract class AbstractDynamicWrapper implements DynamicMBeanModuleWrapper { && signature[0].equals(String.class.getName())) { try { return getAttribute((String) params[0]); - } catch (AttributeNotFoundException e) { + } catch (final AttributeNotFoundException e) { throw new MBeanException(e, "Attribute not found on " + moduleIdentifier); }