aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/plugins/metadata-store-file
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2014-04-10 23:11:38 +1000
committerOlivier Lamy <olamy@apache.org>2014-04-10 23:11:38 +1000
commitd6c28781b0b0f9de8142c8b96b810ab6c415cb26 (patch)
tree99e10f3e0058db84f706d5dc5998a64e75357e98 /archiva-modules/plugins/metadata-store-file
parentb244153061054a1efd45e2d07d69b751070660f2 (diff)
downloadarchiva-d6c28781b0b0f9de8142c8b96b810ab6c415cb26.tar.gz
archiva-d6c28781b0b0f9de8142c8b96b810ab6c415cb26.zip
more diamond
Diffstat (limited to 'archiva-modules/plugins/metadata-store-file')
-rw-r--r--archiva-modules/plugins/metadata-store-file/src/main/java/org/apache/archiva/metadata/repository/file/FileMetadataRepository.java8
-rw-r--r--archiva-modules/plugins/metadata-store-file/src/main/java/org/apache/archiva/metadata/repository/file/FileRepositorySessionFactory.java2
2 files changed, 5 insertions, 5 deletions
diff --git a/archiva-modules/plugins/metadata-store-file/src/main/java/org/apache/archiva/metadata/repository/file/FileMetadataRepository.java b/archiva-modules/plugins/metadata-store-file/src/main/java/org/apache/archiva/metadata/repository/file/FileMetadataRepository.java
index b373c8d5d..e12ca7a27 100644
--- a/archiva-modules/plugins/metadata-store-file/src/main/java/org/apache/archiva/metadata/repository/file/FileMetadataRepository.java
+++ b/archiva-modules/plugins/metadata-store-file/src/main/java/org/apache/archiva/metadata/repository/file/FileMetadataRepository.java
@@ -357,7 +357,7 @@ public class FileMetadataRepository
if ( metadataFacetFactory != null )
{
metadataFacet = metadataFacetFactory.createMetadataFacet( repositoryId, name );
- Map<String, String> map = new HashMap<String, String>();
+ Map<String, String> map = new HashMap<>();
for ( Object key : new ArrayList( properties.keySet() ) )
{
String property = (String) key;
@@ -447,7 +447,7 @@ public class FileMetadataRepository
public Collection<ArtifactMetadata> getArtifacts( String repoId, String namespace, String projectId,
String projectVersion )
{
- Map<String, ArtifactMetadata> artifacts = new HashMap<String, ArtifactMetadata>();
+ Map<String, ArtifactMetadata> artifacts = new HashMap<>();
File directory = new File( getDirectory( repoId ), namespace + "/" + projectId + "/" + projectVersion );
@@ -516,7 +516,7 @@ public class FileMetadataRepository
{
MetadataFacet facet = factory.createMetadataFacet();
String prefix = propertyPrefix + facet.getFacetId();
- Map<String, String> map = new HashMap<String, String>();
+ Map<String, String> map = new HashMap<>();
for ( Object key : new ArrayList( properties.keySet() ) )
{
String property = (String) key;
@@ -1029,7 +1029,7 @@ public class FileMetadataRepository
else
{
MetadataFacet facet = factory.createMetadataFacet();
- Map<String, String> map = new HashMap<String, String>();
+ Map<String, String> map = new HashMap<>();
for ( Object key : new ArrayList( properties.keySet() ) )
{
String property = (String) key;
diff --git a/archiva-modules/plugins/metadata-store-file/src/main/java/org/apache/archiva/metadata/repository/file/FileRepositorySessionFactory.java b/archiva-modules/plugins/metadata-store-file/src/main/java/org/apache/archiva/metadata/repository/file/FileRepositorySessionFactory.java
index 54ca6ca39..0f775a2c6 100644
--- a/archiva-modules/plugins/metadata-store-file/src/main/java/org/apache/archiva/metadata/repository/file/FileRepositorySessionFactory.java
+++ b/archiva-modules/plugins/metadata-store-file/src/main/java/org/apache/archiva/metadata/repository/file/FileRepositorySessionFactory.java
@@ -70,7 +70,7 @@ public class FileRepositorySessionFactory
applicationContext.getBeansOfType( MetadataFacetFactory.class );
// olamy with spring the "id" is now "metadataFacetFactory#hint"
// whereas was only hint with plexus so let remove metadataFacetFactory#
- metadataFacetFactories = new HashMap<String, MetadataFacetFactory>( tmpMetadataFacetFactories.size() );
+ metadataFacetFactories = new HashMap<>( tmpMetadataFacetFactories.size() );
for ( Map.Entry<String, MetadataFacetFactory> entry : tmpMetadataFacetFactories.entrySet() )
{