diff options
author | Olivier Lamy <olamy@apache.org> | 2014-04-10 11:43:11 +1000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2014-04-10 11:43:11 +1000 |
commit | d9de8dc7afe4a1e22257a9437d68649eee8f3047 (patch) | |
tree | 89e49278beea7304252fd217a35a865986647a44 /archiva-modules/archiva-web/archiva-rss | |
parent | ff99d5a203756c31bcf4a8a98ec4c25cb423ad74 (diff) | |
download | archiva-d9de8dc7afe4a1e22257a9437d68649eee8f3047.tar.gz archiva-d9de8dc7afe4a1e22257a9437d68649eee8f3047.zip |
use diamond operator
Diffstat (limited to 'archiva-modules/archiva-web/archiva-rss')
5 files changed, 7 insertions, 7 deletions
diff --git a/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/RssFeedGenerator.java b/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/RssFeedGenerator.java index e51ec85dc..e0d337920 100644 --- a/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/RssFeedGenerator.java +++ b/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/RssFeedGenerator.java @@ -72,7 +72,7 @@ public class RssFeedGenerator private List<SyndEntry> getEntries( List<RssFeedEntry> dataEntries ) { - List<SyndEntry> entries = new ArrayList<SyndEntry>(); + List<SyndEntry> entries = new ArrayList<>(); SyndEntry entry; SyndContent description; diff --git a/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessor.java b/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessor.java index 90d983a5f..776274ae7 100644 --- a/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessor.java +++ b/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessor.java @@ -102,7 +102,7 @@ public class NewArtifactsRssFeedProcessor long tmp = 0; RssFeedEntry entry = null; - List<RssFeedEntry> entries = new ArrayList<RssFeedEntry>(); + List<RssFeedEntry> entries = new ArrayList<>(); String description = ""; int idx = 0; for ( ArtifactMetadata artifact : artifacts ) diff --git a/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewVersionsOfArtifactRssFeedProcessor.java b/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewVersionsOfArtifactRssFeedProcessor.java index a41c0df5c..eb315d296 100644 --- a/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewVersionsOfArtifactRssFeedProcessor.java +++ b/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewVersionsOfArtifactRssFeedProcessor.java @@ -81,7 +81,7 @@ public class NewVersionsOfArtifactRssFeedProcessor MetadataRepository metadataRepository ) throws FeedException { - List<ArtifactMetadata> artifacts = new ArrayList<ArtifactMetadata>(); + List<ArtifactMetadata> artifacts = new ArrayList<>(); try { for ( String repoId : metadataRepository.getRepositories() ) @@ -106,7 +106,7 @@ public class NewVersionsOfArtifactRssFeedProcessor long tmp = 0; RssFeedEntry entry = null; - List<RssFeedEntry> entries = new ArrayList<RssFeedEntry>(); + List<RssFeedEntry> entries = new ArrayList<>(); String description = ""; int idx = 0; for ( ArtifactMetadata artifact : artifacts ) diff --git a/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/RssFeedGeneratorTest.java b/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/RssFeedGeneratorTest.java index c011fb894..40cab4f52 100644 --- a/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/RssFeedGeneratorTest.java +++ b/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/RssFeedGeneratorTest.java @@ -57,7 +57,7 @@ public class RssFeedGeneratorTest public void testNewFeed() throws Exception { - List<RssFeedEntry> entries = new ArrayList<RssFeedEntry>(); + List<RssFeedEntry> entries = new ArrayList<>(); RssFeedEntry entry = new RssFeedEntry( "Item 1" ); Date whenGathered = new Date( System.currentTimeMillis() ); @@ -95,7 +95,7 @@ public class RssFeedGeneratorTest public void testNoDataEntries() throws Exception { - List<RssFeedEntry> entries = new ArrayList<RssFeedEntry>(); + List<RssFeedEntry> entries = new ArrayList<>(); SyndFeed feed = generator.generateFeed( "Test Feed", "The test feed from Archiva.", entries ); diff --git a/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessorTest.java b/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessorTest.java index a83f38301..ad06d3dd6 100644 --- a/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessorTest.java +++ b/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessorTest.java @@ -72,7 +72,7 @@ public class NewArtifactsRssFeedProcessorTest public void testProcess() throws Exception { - List<ArtifactMetadata> newArtifacts = new ArrayList<ArtifactMetadata>(); + List<ArtifactMetadata> newArtifacts = new ArrayList<>(); Date whenGathered = Calendar.getInstance().getTime(); newArtifacts.add( createArtifact( "artifact-one", "1.0", whenGathered ) ); |