[ https://issues.apache.org/jira/browse/MINVOKER-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17958418#comment-17958418 ]
Olivier Lamy commented on MINVOKER-114: --------------------------------------- This project has moved from Jira to GitHub Issues. This issue was migrated to [apache/maven-invoker-plugin#654|https://github.com/apache/maven-invoker-plugin/issues/654]. > Update plugin code to use Java 5 language features > -------------------------------------------------- > > Key: MINVOKER-114 > URL: https://issues.apache.org/jira/browse/MINVOKER-114 > Project: Maven Invoker Plugin (Moved to GitHub Issues) > Issue Type: Improvement > Reporter: luke w patterson > Assignee: Olivier Lamy > Priority: Major > Attachments: invoker-java-5.patch > > > (Huge patch attached. Hopefully it can get reviewed/applied soon, before it > becomes stale. Luckily the patch consists only of low-risk changes that > shouldn't affect the logic functionality.) > Since the plugin now requires Java 5 anyways (MINVOKER-111), might as well > update the code to take advantage of better language features. > * Removed all unavoidable "raw type" warnings. > * Where possible/equivalent, converted Iterator-based loops to enhanced for > loops. > * Removed unnecessary dependencies to Iterator. > * Removed unnecessary casts. > * Enabled "useJava5" parameter of modello-maven-plugin. > These changes should make it easier to maintain the code later. -- This message was sent by Atlassian Jira (v8.20.10#820010)