From 5a1ceabf286e2b3442cde058bc008f1fa230c719 Mon Sep 17 00:00:00 2001 From: Marian Dubai Date: Thu, 20 Nov 2014 15:04:12 +0100 Subject: [PATCH] Fail on validation of checkstyle set to true Change-Id: I3e5b9c96b76921bfae0ee31207508a97a52ee872 Signed-off-by: Marian Dubai --- .../manager/impl/dynamicmbean/AbstractDynamicWrapper.java | 2 +- .../threadpool/test/SimpleConfigurationTest.java | 1 - opendaylight/config/pom.xml | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) 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 de367eaf9c..0346bdd19c 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 @@ -74,7 +74,7 @@ abstract class AbstractDynamicWrapper implements DynamicMBeanModuleWrapper { public void handleNotification(final Notification n, final Object handback) { if (n instanceof MBeanServerNotification && n.getType() - .equals(MBeanServerNotification.UNREGISTRATION_NOTIFICATION)) { + .equals(MBeanServerNotification.UNREGISTRATION_NOTIFICATION)) { if (((MBeanServerNotification) n).getMBeanName().equals( thisWrapperObjectName)) { try { diff --git a/opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/testingservices/threadpool/test/SimpleConfigurationTest.java b/opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/testingservices/threadpool/test/SimpleConfigurationTest.java index c20d3bfc04..a15839d2d5 100644 --- a/opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/testingservices/threadpool/test/SimpleConfigurationTest.java +++ b/opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/testingservices/threadpool/test/SimpleConfigurationTest.java @@ -20,7 +20,6 @@ import java.util.List; import java.util.Map; import java.util.Set; import java.util.concurrent.ThreadPoolExecutor; -import javax.management.DynamicMBean; import javax.management.InstanceAlreadyExistsException; import javax.management.InstanceNotFoundException; import javax.management.MBeanException; diff --git a/opendaylight/config/pom.xml b/opendaylight/config/pom.xml index fc447aa7f9..3f0956e6b9 100644 --- a/opendaylight/config/pom.xml +++ b/opendaylight/config/pom.xml @@ -145,7 +145,7 @@ maven-checkstyle-plugin false - false + true checkstyle-logging.xml true true @@ -154,7 +154,7 @@ - **\/logback-config\/,**\/target\/,**\/bin\/,**\/target-ide\/,**\/${jmxGeneratorPath}\/,**\/${salGeneratorPath}\/ + **\/config\/yang\/logback\/config\/**,**\/target\/,**\/bin\/,**\/target-ide\/,**\/${jmxGeneratorPath}\/,**\/${salGeneratorPath}\/ -- 2.36.6