From: Brett Porter Date: Wed, 30 Jul 2014 03:22:50 +0000 (+1000) Subject: add generics X-Git-Tag: archiva-2.1.1~29 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=339650b1a7e03961c94df6a3fa950f57cf846c40;p=archiva.git add generics --- 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 95b1d58e4..d5cd396e0 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 propertyNameTriggers = new ArrayList<>(); - private List includes = new ArrayList(); + private List 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 getExcludes() { return null; } - public List getIncludes() + public List getIncludes() { return this.includes; }