Enable modernizer-maven-plugin by default 55/83355/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 1 Aug 2019 12:10:58 +0000 (14:10 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 1 Aug 2019 12:18:19 +0000 (14:18 +0200)
This enables modernizer in all projects by default.

JIRA: ODLPARENT-203
Change-Id: I1053a29dd9578b454c1da4425b3cbe69867fc28c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
bundles-test-lib/src/test/java/org/opendaylight/odlparent/bundlestest/lib/ServiceReferenceUtilTest.java
odlparent/pom.xml

index 9aa34cb76e27e2e52f7594b7492e756a2739d666..eee06b25872a6966e44df0c5a0da312345f2b5a4 100644 (file)
@@ -10,8 +10,8 @@ package org.opendaylight.odlparent.bundlestest.lib;
 import static com.google.common.truth.Truth.assertThat;
 
 import com.google.common.collect.Lists;
-import com.google.common.collect.Maps;
 import java.util.Arrays;
+import java.util.HashMap;
 import java.util.Map;
 import org.junit.Test;
 import org.osgi.framework.Bundle;
@@ -43,7 +43,7 @@ public class ServiceReferenceUtilTest {
 
     private static final class TestServiceReference implements ServiceReference<Object> {
 
-        private final Map<String, Object> properties = Maps.newHashMap();
+        private final Map<String, Object> properties = new HashMap<>();
 
         TestServiceReference() {
             properties.put("property1", "value1");
index 386efd69c0960cccfac0020bebcbd2e1803b8fae..804390ef0331e2f4d63ef553796592add0d5ad96 100644 (file)
       <plugin>
         <artifactId>maven-javadoc-plugin</artifactId>
       </plugin>
+      <plugin>
+        <groupId>org.gaul</groupId>
+        <artifactId>modernizer-maven-plugin</artifactId>
+      </plugin>
 
       <!-- Jacoco / Sonar -->
       <plugin>