More java5

git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk@1517357 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/maven/plugins/repository/BundleUtils.java b/src/main/java/org/apache/maven/plugins/repository/BundleUtils.java
index 4a1cd3b..216fcc6 100644
--- a/src/main/java/org/apache/maven/plugins/repository/BundleUtils.java
+++ b/src/main/java/org/apache/maven/plugins/repository/BundleUtils.java
@@ -57,24 +57,17 @@
         {
             return result;
         }
-        
-        for ( int i = 0; i < projectFiles.length; i++ )
-        {
-            if ( projectFiles[i].getName().endsWith( ".pom" ) )
-            {
-                if ( !projectFiles[i].equals( pom ) )
-                {
-                    log.info( "Detected POM file will be excluded:\n" + projectFiles[i]
-                                                                                     + "\n\nInstead, the bundle will include the POM from:\n" + pom );
+
+        for (File projectFile : projectFiles) {
+            if (projectFile.getName().endsWith(".pom")) {
+                if (!projectFile.equals(pom)) {
+                    log.info("Detected POM file will be excluded:\n" + projectFile
+                            + "\n\nInstead, the bundle will include the POM from:\n" + pom);
                 }
-            }
-            else if ( projectFiles[i].getName().endsWith( "-bundle.jar" ) )
-            {
-                log.warn( "Skipping project file which collides with repository bundle filename:\n" + projectFiles[i] );
-            }
-            else
-            {
-                result.add( projectFiles[i] );
+            } else if (projectFile.getName().endsWith("-bundle.jar")) {
+                log.warn("Skipping project file which collides with repository bundle filename:\n" + projectFile);
+            } else {
+                result.add(projectFile);
             }
         }
         
@@ -131,7 +124,7 @@
                     "comma (',').\n\nSelection: " );
             
             log.info( message );
-            String response = null;
+            String response;
             try
             {
                 response = inputHandler.readLine();