archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject [1/3] git commit: add generics
Date Wed, 30 Jul 2014 03:33:43 GMT
Repository: archiva
Updated Branches:
  refs/heads/master e7663d04d -> 30db1698e


add generics


Project: http://git-wip-us.apache.org/repos/asf/archiva/repo
Commit: http://git-wip-us.apache.org/repos/asf/archiva/commit/339650b1
Tree: http://git-wip-us.apache.org/repos/asf/archiva/tree/339650b1
Diff: http://git-wip-us.apache.org/repos/asf/archiva/diff/339650b1

Branch: refs/heads/master
Commit: 339650b1a7e03961c94df6a3fa950f57cf846c40
Parents: e7663d0
Author: Brett Porter <brett@apache.org>
Authored: Wed Jul 30 13:22:50 2014 +1000
Committer: Brett Porter <brett@apache.org>
Committed: Wed Jul 30 13:22:50 2014 +1000

----------------------------------------------------------------------
 .../src/main/java/SimpleArtifactConsumer.java             | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/archiva/blob/339650b1/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/main/java/SimpleArtifactConsumer.java
----------------------------------------------------------------------
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/main/java/SimpleArtifactConsumer.java
b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/main/java/SimpleArtifactConsumer.java
index 95b1d58..d5cd396 100644
--- a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/main/java/SimpleArtifactConsumer.java
+++ b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/main/java/SimpleArtifactConsumer.java
@@ -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;
     }


Mime
View raw message