Switch to spotbugs 30/75330/7
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 20 Aug 2018 15:30:21 +0000 (17:30 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 13 Sep 2018 19:44:04 +0000 (21:44 +0200)
Findbugs is ancient, spotbugs is a live project, switch to using
it.

Change-Id: I160bb14eb1b32bc226b1e94955d340c7cc79fa5e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
28 files changed:
common/concepts/pom.xml
common/mockito-configuration/pom.xml
common/testutils/pom.xml
common/util/pom.xml
third-party/triemap/pom.xml
yang/odlext-model-api/pom.xml
yang/odlext-parser-support/pom.xml
yang/openconfig-model-api/pom.xml
yang/openconfig-parser-support/pom.xml
yang/rfc6536-model-api/pom.xml
yang/rfc6536-parser-support/pom.xml
yang/rfc7952-model-api/pom.xml
yang/rfc7952-parser-support/pom.xml
yang/rfc8040-model-api/pom.xml
yang/rfc8040-parser-support/pom.xml
yang/yang-common/pom.xml
yang/yang-data-api/pom.xml
yang/yang-data-codec-xml/pom.xml
yang/yang-maven-plugin-it/pom.xml
yang/yang-maven-plugin-spi/pom.xml
yang/yang-model-api/pom.xml
yang/yang-model-util/pom.xml
yang/yang-parser-api/pom.xml
yang/yang-parser-impl/pom.xml
yang/yang-parser-spi/pom.xml
yang/yang-test-util/pom.xml
yang/yang-test-util/src/main/java/org/opendaylight/yangtools/yang/test/util/YangParserTestUtils.java
yang/yang-xpath-api/pom.xml

index 61bddb8b322068dc723577f223942cd42aebd660..a62b05e28daf2b48e8b353559e15e289b5ff6ca0 100644 (file)
@@ -61,8 +61,8 @@
                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>findbugs-maven-plugin</artifactId>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
                 <configuration>
                     <failOnError>true</failOnError>
                 </configuration>
index 71477b4cd6fc8771ee33898f77199c6d080d0cb5..76d11c7ec04b38f2ddcd580aac9c7845a819e3e7 100644 (file)
@@ -47,8 +47,8 @@
                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>findbugs-maven-plugin</artifactId>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
                 <configuration>
                     <failOnError>true</failOnError>
                 </configuration>
index e8a7c35b483a6a79444a76159fb2ed6d45cae60f..05ccf352476a155d24167df292c2dcac68475784 100644 (file)
@@ -76,8 +76,8 @@
                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>findbugs-maven-plugin</artifactId>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
                 <configuration>
                     <failOnError>true</failOnError>
                 </configuration>
index 68bacdad49d0b1d547cf9294a1041f7165d3e23d..f292fe60b7d6c9179d57e91c9cc43f5013338829 100644 (file)
@@ -83,8 +83,8 @@
                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>findbugs-maven-plugin</artifactId>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
                 <configuration>
                     <failOnError>true</failOnError>
                 </configuration>
index e41e810d143a820c0cb1086c152d204d6ff6dd0e..ce9bbf1f0ee90e51b971ec9e491ee5246bb0f21a 100644 (file)
@@ -80,8 +80,8 @@
                 </executions>
             </plugin>
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>findbugs-maven-plugin</artifactId>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
                 <configuration>
                     <failOnError>true</failOnError>
                 </configuration>
index 57006d0e2b3453274230a40b809bb34135db2b6b..1f267f28fb7a3d416a656f48e04f738fd260d0c9 100644 (file)
@@ -65,8 +65,8 @@
                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>findbugs-maven-plugin</artifactId>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
                 <configuration>
                     <failOnError>true</failOnError>
                 </configuration>
index 46b86f9300f454b3507701b826b8e1bda2ca994f..5870372564ce27b629ced737c774142081172e09 100644 (file)
@@ -71,8 +71,8 @@
                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>findbugs-maven-plugin</artifactId>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
                 <configuration>
                     <failOnError>true</failOnError>
                 </configuration>
index 440b1c9b3095c22e3da1398ab60f777786db6b98..7e1328742e8dd2dc674bf64a1fd42b7f225ed8f3 100644 (file)
@@ -65,8 +65,8 @@
                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>findbugs-maven-plugin</artifactId>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
                 <configuration>
                     <failOnError>true</failOnError>
                 </configuration>
index 8dc13a07b829b6a061ada2448ea6c6cff8f6f030..c9cbd5a7c73eb3606d0bfd999c123823b3b3ddf3 100644 (file)
@@ -71,8 +71,8 @@
                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>findbugs-maven-plugin</artifactId>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
                 <configuration>
                     <failOnError>true</failOnError>
                 </configuration>
index 6a00e6043bee237197e5dd790387a72ce9116c47..96901d1eaf2be6b019e6740fc8eb53e7e5f0537b 100644 (file)
@@ -65,8 +65,8 @@
                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>findbugs-maven-plugin</artifactId>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
                 <configuration>
                     <failOnError>true</failOnError>
                 </configuration>
index 22ea2d161c6b2658fe726d322f42ccecc03eead5..2acfdfbd7112be2dd0a2d9ed17c7297d80cffea8 100644 (file)
@@ -71,8 +71,8 @@
                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>findbugs-maven-plugin</artifactId>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
                 <configuration>
                     <failOnError>true</failOnError>
                 </configuration>
index f08216d33b0f513225f2dc251cb8282fca25f0bb..618a699b41e60cf74d7dd10d5e3363f893d1c669 100644 (file)
@@ -65,8 +65,8 @@
                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>findbugs-maven-plugin</artifactId>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
                 <configuration>
                     <failOnError>true</failOnError>
                 </configuration>
index bcbea169aa08c9a3da92b769dc9b633bba829e0d..7482c19f5a1f83814a5a1812e0d6f2937961c2e5 100644 (file)
@@ -71,8 +71,8 @@
                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>findbugs-maven-plugin</artifactId>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
                 <configuration>
                     <failOnError>true</failOnError>
                 </configuration>
index 9bb34e67b44c1bbb24b4fefc04f071660af964c4..711f813e0fc5cd89397ea00ccfc91f037a5f92f1 100644 (file)
@@ -65,8 +65,8 @@
                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>findbugs-maven-plugin</artifactId>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
                 <configuration>
                     <failOnError>true</failOnError>
                 </configuration>
index f3bc465cbfea99b762cf68fcb3529177e3737419..b13beae6d3280c625e930a58427483aa0f82d6c9 100644 (file)
@@ -71,8 +71,8 @@
                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>findbugs-maven-plugin</artifactId>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
                 <configuration>
                     <failOnError>true</failOnError>
                 </configuration>
index 8e62d8052a7ca07b833bc8cb53cc919320890953..c47b80bcc75a854755f1a04dd9763948a87ff4d1 100644 (file)
@@ -75,8 +75,8 @@
                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>findbugs-maven-plugin</artifactId>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
                 <configuration>
                     <failOnError>true</failOnError>
                 </configuration>
index c8469423a891219b9f54223cbbf6ceb4b0644f46..d0ee7c1227a179d27ac89287126f13530f949553 100644 (file)
@@ -73,8 +73,8 @@
                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>findbugs-maven-plugin</artifactId>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
                 <configuration>
                     <failOnError>true</failOnError>
                 </configuration>
index c19e5b5dfbd87de8472d9e033283dd6bfa12b1eb..e4cb3e3345e2f4a352b2c8f28399e1d1ffb843dc 100644 (file)
@@ -82,8 +82,8 @@
                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>findbugs-maven-plugin</artifactId>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
                 <configuration>
                     <failOnError>true</failOnError>
                 </configuration>
index e36f2ef9c981e897e179bed8916b8b5b78639ebb..c2f1c68df64b23b105b73cb99b370698e92a44c6 100644 (file)
                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>findbugs-maven-plugin</artifactId>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
                 <configuration>
                     <failOnError>true</failOnError>
                 </configuration>
index e479c12c53cda1d01d02c4a5a7c0f47320968598..2887dda4fbde735c8a876c34c744fdfa51b89ec4 100644 (file)
@@ -82,8 +82,8 @@
                 </executions>
             </plugin>
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>findbugs-maven-plugin</artifactId>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
                 <configuration>
                     <failOnError>true</failOnError>
                 </configuration>
index f709d3cf62a17ee09a71e36ffc4b65b20ab603d5..3fc97201ce8f0714e49f5cd8a296681c01365da9 100644 (file)
@@ -65,8 +65,8 @@
                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>findbugs-maven-plugin</artifactId>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
                 <configuration>
                     <failOnError>true</failOnError>
                 </configuration>
index 7bd6d2dbf6ed94ea90681ac9dfc9b748464519a1..a2c51dc19ae522c8a432be75a29615fbd60d2408 100644 (file)
@@ -68,8 +68,8 @@
                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>findbugs-maven-plugin</artifactId>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
                 <configuration>
                     <failOnError>true</failOnError>
                 </configuration>
index 45a3953c6d0065fa90c35c7df338532bbeb37f3e..bc74b7eb2d8b504766776b06b2d3db065012f6e6 100644 (file)
@@ -57,8 +57,8 @@
                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>findbugs-maven-plugin</artifactId>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
                 <configuration>
                     <failOnError>true</failOnError>
                 </configuration>
index 5c3af205b975fb590ac3ea7ebc4509c6e1e1779a..712065fd9672f9a71bf22d6f7b64f400fa21fa78 100644 (file)
                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>findbugs-maven-plugin</artifactId>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
                 <configuration>
                     <failOnError>true</failOnError>
                 </configuration>
index be07928884c7633a1632f5e9de6d56b9bac5905b..5836930bb9a773c82aa81361bcd96b7cb138ad4a 100644 (file)
@@ -71,8 +71,8 @@
                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>findbugs-maven-plugin</artifactId>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
                 <configuration>
                     <failOnError>true</failOnError>
                 </configuration>
index a35cde73ca17933c71a0758c04cb7cadf74f04a8..a550ab917b45e62df042d44a5f187c581123c53e 100644 (file)
@@ -53,8 +53,8 @@
                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>findbugs-maven-plugin</artifactId>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
                 <configuration>
                     <failOnError>true</failOnError>
                 </configuration>
index a395b1899ed761d721504aaf8d1c51683d7b4780..e24d5cedbae696401882d1e2f0162a5294949124 100644 (file)
@@ -20,6 +20,7 @@ import java.util.Arrays;
 import java.util.Collection;
 import java.util.Iterator;
 import java.util.List;
+import java.util.Locale;
 import java.util.ServiceLoader;
 import java.util.Set;
 import java.util.stream.Collectors;
@@ -43,7 +44,8 @@ import org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource;
 public final class YangParserTestUtils {
 
     private static final FileFilter YANG_FILE_FILTER = file -> {
-        final String name = file.getName().toLowerCase();
+        // Locale keeps SpotBugs happy. It should not matter that much anyway.
+        final String name = file.getName().toLowerCase(Locale.ENGLISH);
         return name.endsWith(YangConstants.RFC6020_YANG_FILE_EXTENSION) && file.isFile();
     };
 
index c323b6636f2d74bdaf2482f22878ef015aba24b9..0a6778c6d49801fe0afd8b5b4d8faeecf3b28c85 100644 (file)
@@ -65,8 +65,8 @@
                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>findbugs-maven-plugin</artifactId>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
                 <configuration>
                     <failOnError>true</failOnError>
                 </configuration>