timtebeek commented on code in PR #288:
URL: 
https://github.com/apache/maven-integration-testing/pull/288#discussion_r1302720023


##########
core-it-suite/src/test/resources/mng-5581-lifecycle-mapping-delegate/extension/src/main/java/org/apache/maven/its/mng5581/lifecyclemappingdelegate/TestLifecycleMappingDelegate.java:
##########
@@ -57,7 +57,7 @@ public Map<String, List<MojoExecution>> 
calculateLifecycleMappings(
             throws PluginNotFoundException, PluginResolutionException, 
PluginDescriptorParsingException,
                     MojoNotFoundException, InvalidPluginDescriptorException {
 
-        Map<String, List<MojoExecution>> pluginExecutions = new 
LinkedHashMap<String, List<MojoExecution>>();
+        Map<String, List<MojoExecution>> pluginExecutions = new 
LinkedHashMap<>();

Review Comment:
   This failed with
   ```
   [INFO] Compiling 1 source file to 
/home/runner/work/maven-integration-testing/maven-integration-testing/core-it-suite/target/test-classes/mng-5581-lifecycle-mapping-delegate/extension/target/classes
   [INFO] -------------------------------------------------------------
   Error:  COMPILATION ERROR : 
   [INFO] -------------------------------------------------------------
   Error:  
/home/runner/work/maven-integration-testing/maven-integration-testing/core-it-suite/target/test-classes/mng-5581-lifecycle-mapping-delegate/extension/src/main/java/org/apache/maven/its/mng5581/lifecyclemappingdelegate/TestLifecycleMappingDelegate.java:[60,79]
 diamond operator is not supported in -source 1.5
     (use -source 7 or higher to enable diamond operator)
   ```
   Easiest thing to do then is to restore the types.
   ```suggestion
           Map<String, List<MojoExecution>> pluginExecutions = new 
LinkedHashMap<String, List<MojoExecution>>();
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to