diff options
author | Olivier Lamy <olamy@apache.org> | 2014-04-16 17:12:51 +1000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2014-04-16 17:12:51 +1000 |
commit | 67985e0486f4c0d4fb65ca0859201d70e91703b5 (patch) | |
tree | 9812fa5b9a5ebe337adad1e4d96d8ecb7ae00ad6 /archiva-modules/archiva-web | |
parent | 1e2bb57406f48a55f2bab3db3d62704a81827056 (diff) | |
download | archiva-67985e0486f4c0d4fb65ca0859201d70e91703b5.tar.gz archiva-67985e0486f4c0d4fb65ca0859201d70e91703b5.zip |
diamond operator
Diffstat (limited to 'archiva-modules/archiva-web')
-rw-r--r-- | archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultBrowseService.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultBrowseService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultBrowseService.java index 93e36284d..c98b5f9d2 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultBrowseService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultBrowseService.java @@ -161,7 +161,7 @@ public class DefaultBrowseService { List<String> selectedRepos = getSelectedRepos( repositoryId ); - Set<String> projects = new LinkedHashSet<String>(); + Set<String> projects = new LinkedHashSet<>(); RepositorySession repositorySession = repositorySessionFactory.createSession(); Set<String> namespaces; @@ -169,7 +169,7 @@ public class DefaultBrowseService { MetadataResolver metadataResolver = repositorySession.getResolver(); - Set<String> namespacesToCollapse = new LinkedHashSet<String>(); + Set<String> namespacesToCollapse = new LinkedHashSet<>(); for ( String repoId : selectedRepos ) { namespacesToCollapse.addAll( metadataResolver.resolveNamespaces( repositorySession, repoId, groupId ) ); @@ -180,7 +180,7 @@ public class DefaultBrowseService // TODO: this logic should be optional, particularly remembering we want to keep this code simple // it is located here to avoid the content repository implementation needing to do too much for what // is essentially presentation code - namespaces = new LinkedHashSet<String>(); + namespaces = new LinkedHashSet<>(); for ( String n : namespacesToCollapse ) { // TODO: check performance of this |