diff options
author | Olivier Lamy <olamy@apache.org> | 2014-04-10 23:11:38 +1000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2014-04-10 23:11:38 +1000 |
commit | d6c28781b0b0f9de8142c8b96b810ab6c415cb26 (patch) | |
tree | 99e10f3e0058db84f706d5dc5998a64e75357e98 /archiva-modules/archiva-base/archiva-repository-scanner | |
parent | b244153061054a1efd45e2d07d69b751070660f2 (diff) | |
download | archiva-d6c28781b0b0f9de8142c8b96b810ab6c415cb26.tar.gz archiva-d6c28781b0b0f9de8142c8b96b810ab6c415cb26.zip |
more diamond
Diffstat (limited to 'archiva-modules/archiva-base/archiva-repository-scanner')
2 files changed, 11 insertions, 16 deletions
diff --git a/archiva-modules/archiva-base/archiva-repository-scanner/src/main/java/org/apache/archiva/repository/scanner/RepositoryContentConsumers.java b/archiva-modules/archiva-base/archiva-repository-scanner/src/main/java/org/apache/archiva/repository/scanner/RepositoryContentConsumers.java index c45d815dc..5a5b4d71a 100644 --- a/archiva-modules/archiva-base/archiva-repository-scanner/src/main/java/org/apache/archiva/repository/scanner/RepositoryContentConsumers.java +++ b/archiva-modules/archiva-base/archiva-repository-scanner/src/main/java/org/apache/archiva/repository/scanner/RepositoryContentConsumers.java @@ -48,7 +48,7 @@ import java.util.Map; /** * RepositoryContentConsumerUtil */ -@Service ("repositoryContentConsumers") +@Service( "repositoryContentConsumers" ) public class RepositoryContentConsumers implements ApplicationContextAware { @@ -119,7 +119,7 @@ public class RepositoryContentConsumers public Map<String, KnownRepositoryContentConsumer> getSelectedKnownConsumersMap() throws RepositoryAdminException { - Map<String, KnownRepositoryContentConsumer> consumerMap = new HashMap<String, KnownRepositoryContentConsumer>(); + Map<String, KnownRepositoryContentConsumer> consumerMap = new HashMap<>(); for ( KnownRepositoryContentConsumer consumer : getSelectedKnownConsumers() ) { @@ -138,8 +138,7 @@ public class RepositoryContentConsumers public Map<String, InvalidRepositoryContentConsumer> getSelectedInvalidConsumersMap() throws RepositoryAdminException { - Map<String, InvalidRepositoryContentConsumer> consumerMap = - new HashMap<String, InvalidRepositoryContentConsumer>(); + Map<String, InvalidRepositoryContentConsumer> consumerMap = new HashMap<>(); for ( InvalidRepositoryContentConsumer consumer : getSelectedInvalidConsumers() ) { @@ -154,7 +153,7 @@ public class RepositoryContentConsumers * selected according to the active configuration. * * @return the list of {@link KnownRepositoryContentConsumer} that have been selected - * by the active configuration. + * by the active configuration. */ public synchronized List<KnownRepositoryContentConsumer> getSelectedKnownConsumers() throws RepositoryAdminException @@ -183,7 +182,7 @@ public class RepositoryContentConsumers * selected according to the active configuration. * * @return the list of {@link InvalidRepositoryContentConsumer} that have been selected - * by the active configuration. + * by the active configuration. */ public synchronized List<InvalidRepositoryContentConsumer> getSelectedInvalidConsumers() throws RepositoryAdminException @@ -215,12 +214,11 @@ public class RepositoryContentConsumers * available and present in the classpath and as components in the IoC. * * @return the list of all available {@link KnownRepositoryContentConsumer} present in the classpath - * and as a component in the IoC. + * and as a component in the IoC. */ public List<KnownRepositoryContentConsumer> getAvailableKnownConsumers() { - return new ArrayList<>( - applicationContext.getBeansOfType( KnownRepositoryContentConsumer.class ).values() ); + return new ArrayList<>( applicationContext.getBeansOfType( KnownRepositoryContentConsumer.class ).values() ); } /** @@ -228,12 +226,11 @@ public class RepositoryContentConsumers * available and present in the classpath and as components in the IoC. * * @return the list of all available {@link InvalidRepositoryContentConsumer} present in the classpath - * and as a component in the IoC. + * and as a component in the IoC. */ public List<InvalidRepositoryContentConsumer> getAvailableInvalidConsumers() { - return new ArrayList<>( - applicationContext.getBeansOfType( InvalidRepositoryContentConsumer.class ).values() ); + return new ArrayList<>( applicationContext.getBeansOfType( InvalidRepositoryContentConsumer.class ).values() ); } /** diff --git a/archiva-modules/archiva-base/archiva-repository-scanner/src/main/java/org/apache/archiva/repository/scanner/RepositoryScannerInstance.java b/archiva-modules/archiva-base/archiva-repository-scanner/src/main/java/org/apache/archiva/repository/scanner/RepositoryScannerInstance.java index 88638ba00..371776ab0 100644 --- a/archiva-modules/archiva-base/archiva-repository-scanner/src/main/java/org/apache/archiva/repository/scanner/RepositoryScannerInstance.java +++ b/archiva-modules/archiva-base/archiva-repository-scanner/src/main/java/org/apache/archiva/repository/scanner/RepositoryScannerInstance.java @@ -43,8 +43,6 @@ import java.util.Map; /** * RepositoryScannerInstance - * - * */ public class RepositoryScannerInstance implements DirectoryWalkListener @@ -83,8 +81,8 @@ public class RepositoryScannerInstance this.knownConsumers = knownConsumerList; this.invalidConsumers = invalidConsumerList; - consumerTimings = new HashMap<String, Long>(); - consumerCounts = new HashMap<String, Long>(); + consumerTimings = new HashMap<>(); + consumerCounts = new HashMap<>(); this.consumerProcessFile = new ConsumerProcessFileClosure(); consumerProcessFile.setExecuteOnEntireRepo( true ); |