]> source.dussan.org Git - archiva.git/commitdiff
add generics
authorBrett Porter <brett@apache.org>
Wed, 30 Jul 2014 03:22:50 +0000 (13:22 +1000)
committerBrett Porter <brett@apache.org>
Wed, 30 Jul 2014 03:22:50 +0000 (13:22 +1000)
archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/main/java/SimpleArtifactConsumer.java

index 95b1d58e4d9f04a5283c14cf69d7130b998c7adf..d5cd396e0a18513b07c943ada36a3950c4044483 100644 (file)
@@ -74,9 +74,9 @@ public class SimpleArtifactConsumer
     @Inject
     private ArchivaConfiguration configuration;
 
-    private List propertyNameTriggers = new ArrayList();
+    private List<String> propertyNameTriggers = new ArrayList<>();
 
-    private List includes = new ArrayList();
+    private List<String> includes = new ArrayList<>();
 
     /** current repository being scanned */
     private ManagedRepository repository;
@@ -159,7 +159,7 @@ public class SimpleArtifactConsumer
     @PostConstruct
     public void initialize()
     {
-        propertyNameTriggers = new ArrayList();
+        propertyNameTriggers = new ArrayList<>();
         propertyNameTriggers.add( "repositoryScanning" );
         propertyNameTriggers.add( "fileTypes" );
         propertyNameTriggers.add( "fileType" );
@@ -181,12 +181,12 @@ public class SimpleArtifactConsumer
         return this.description;
     }
 
-    public List getExcludes()
+    public List<String> getExcludes()
     {
         return null;
     }
 
-    public List getIncludes()
+    public List<String> getIncludes()
     {
         return this.includes;
     }