FindBugs enforcement in module openflowplugin-api/ 19/66119/1
authorMichael Vorburger <vorburger@redhat.com>
Thu, 30 Nov 2017 22:34:15 +0000 (23:34 +0100)
committerMichael Vorburger <vorburger@redhat.com>
Thu, 30 Nov 2017 22:34:15 +0000 (23:34 +0100)
No serious FindBugs violation needed to be corrected (1 very minor)

Change-Id: Ibb1ea7a0d3bbcd775187c4639f7549fbdb254dc5
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
openflowplugin-api/pom.xml
openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/configuration/ConfigurationProperty.java

index 052ecd09a8b41fc2bfd62c959247fd36db0eccb7..ed29520d0f985dc1e62ad12bf8c039ea79398f76 100644 (file)
                     <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
                 </configuration>
             </plugin>
+            <plugin>
+              <groupId>org.codehaus.mojo</groupId>
+              <artifactId>findbugs-maven-plugin</artifactId>
+              <configuration>
+                <failOnError>true</failOnError>
+              </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.opendaylight.yangtools</groupId>
                 <artifactId>yang-maven-plugin</artifactId>
index 219f92de233d0b3409740e2f6d0004b78bda3889..26d680e6d51c672d466f38ffe55f9b079d95857c 100644 (file)
@@ -9,6 +9,7 @@
 package org.opendaylight.openflowplugin.api.openflow.configuration;
 
 import com.google.common.collect.ImmutableMap;
+import java.util.Locale;
 import java.util.Map;
 
 /**
@@ -114,6 +115,6 @@ public enum ConfigurationProperty {
      */
     @Override
     public String toString() {
-        return this.name().toLowerCase().replace('_', '-');
+        return this.name().toLowerCase(Locale.ENGLISH).replace('_', '-');
     }
 }