Commits

Jan Lahoda committed e632490

Fixing tests for maven plugin after recent changes in defaults

  • Participants
  • Parent commits 8d35f4b

Comments (0)

Files changed (8)

File cmdline/maven/tests/sl-15/jackpot-settings.xml

+<?xml version="1.0" encoding="UTF-8"?>
+<hints>
+    <settings>
+        <Javac_canUseDiamond enabled="true"/>
+    </settings>
+</hints>

File cmdline/maven/tests/sl-15/pom.xml

         <groupId>org.netbeans.modules.jackpot30</groupId>
         <artifactId>jackpot30-maven-plugin</artifactId>
         <version>1.0-SNAPSHOT</version>
+        <configuration>
+             <configurationFile>jackpot-settings.xml</configurationFile>
+        </configuration>
       </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>

File cmdline/maven/tests/sl-17/golden

-${basedir}/src/main/java/test/App.java:8: warning: redundant type arguments in new expression (use diamond operator instead).
+${basedir}/src/main/java/test/App.java:8: warning: [Can_Use_Diamond] redundant type arguments in new expression (use diamond operator instead).
         List<String> l = new ArrayList<String>();
                              ^

File cmdline/maven/tests/sl-17/jackpot-settings.xml

+<?xml version="1.0" encoding="UTF-8"?>
+<hints>
+    <settings>
+        <Javac_canUseDiamond enabled="true"/>
+    </settings>
+</hints>

File cmdline/maven/tests/sl-17/pom.xml

         <groupId>org.netbeans.modules.jackpot30</groupId>
         <artifactId>jackpot30-maven-plugin</artifactId>
         <version>1.0-SNAPSHOT</version>
+        <configuration>
+             <configurationFile>jackpot-settings.xml</configurationFile>
+        </configuration>
       </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>

File cmdline/maven/tests/test1/golden

-${basedir}/src/main/java/test/App.java:7: warning: Synchronization on non-final field
+${basedir}/src/main/java/test/App.java:7: warning: [Synchronization_on_non_final_field] Synchronization on non-final field
         synchronized (LOCK) {
                      ^

File cmdline/maven/tests/test1/jackpot-settings.xml

+<?xml version="1.0" encoding="UTF-8"?>
+<hints>
+    <settings>
+        <org.netbeans.modules.java.hints.SyncOnNonFinal enabled="true"/>
+    </settings>
+</hints>

File cmdline/maven/tests/test1/pom.xml

         <groupId>org.netbeans.modules.jackpot30</groupId>
         <artifactId>jackpot30-maven-plugin</artifactId>
         <version>1.0-SNAPSHOT</version>
+        <configuration>
+             <configurationFile>jackpot-settings.xml</configurationFile>
+        </configuration>
       </plugin>
     </plugins>
   </build>