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-security | |
parent | ff99d5a203756c31bcf4a8a98ec4c25cb423ad74 (diff) | |
download | archiva-d9de8dc7afe4a1e22257a9437d68649eee8f3047.tar.gz archiva-d9de8dc7afe4a1e22257a9437d68649eee8f3047.zip |
use diamond operator
Diffstat (limited to 'archiva-modules/archiva-web/archiva-security')
-rw-r--r-- | archiva-modules/archiva-web/archiva-security/src/main/java/org/apache/archiva/security/DefaultUserRepositories.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archiva-modules/archiva-web/archiva-security/src/main/java/org/apache/archiva/security/DefaultUserRepositories.java b/archiva-modules/archiva-web/archiva-security/src/main/java/org/apache/archiva/security/DefaultUserRepositories.java index d266b528c..cb13c7e41 100644 --- a/archiva-modules/archiva-web/archiva-security/src/main/java/org/apache/archiva/security/DefaultUserRepositories.java +++ b/archiva-modules/archiva-web/archiva-security/src/main/java/org/apache/archiva/security/DefaultUserRepositories.java @@ -81,7 +81,7 @@ public class DefaultUserRepositories { List<ManagedRepository> managedRepositories = getAccessibleRepositories( principal, operation ); - List<String> repoIds = new ArrayList<String>( managedRepositories.size() ); + List<String> repoIds = new ArrayList<>( managedRepositories.size() ); for ( ManagedRepository managedRepository : managedRepositories ) { repoIds.add( managedRepository.getId() ); @@ -101,7 +101,7 @@ public class DefaultUserRepositories { SecuritySession securitySession = createSession( principal ); - List<ManagedRepository> managedRepositories = new ArrayList<ManagedRepository>(); + List<ManagedRepository> managedRepositories = new ArrayList<>(); try { |