Make code more Java5.

git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk@1705824 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java b/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java
index e74c562..9555444 100644
--- a/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java
+++ b/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java
@@ -168,7 +168,7 @@
      * Contains the full list of projects in the reactor.
      */
     @Parameter( defaultValue = "${reactorProjects}", readonly = true )
-    protected List reactorProjects;
+    protected List<MavenProject> reactorProjects;
 
     /**
      * Whether creating the archive should be forced. If set to true, the jar will always be created. If set to false,
@@ -358,11 +358,11 @@
                 continue;
             }
 
-            List resourceIncludes = resource.getIncludes();
+            List<String> resourceIncludes = resource.getIncludes();
 
             String[] combinedIncludes = getCombinedIncludes( resourceIncludes );
 
-            List resourceExcludes = resource.getExcludes();
+            List<String> resourceExcludes = resource.getExcludes();
 
             String[] combinedExcludes = getCombinedExcludes( resourceExcludes );
 
@@ -411,6 +411,7 @@
     {
         try
         {
+//            archiver.addFileSet( fileSet );
             archiver.addDirectory( sourceDirectory, includes, excludes );
         }
         catch ( ArchiverException e )
@@ -460,7 +461,7 @@
      * @param additionalIncludes The includes specified in the pom resources section
      * @return The combined array of includes.
      */
-    private String[] getCombinedIncludes( List additionalIncludes )
+    private String[] getCombinedIncludes( List<String> additionalIncludes )
     {
         List<String> combinedIncludes = new ArrayList<String>();
 
@@ -491,7 +492,7 @@
      * @return The combined list of excludes.
      */
 
-    private String[] getCombinedExcludes( List additionalExcludes )
+    private String[] getCombinedExcludes( List<String> additionalExcludes )
     {
         List<String> combinedExcludes = new ArrayList<String>();