summaryrefslogtreecommitdiffstats
path: root/archiva-modules/plugins/metadata-store-file
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2014-04-10 16:44:51 +1000
committerOlivier Lamy <olamy@apache.org>2014-04-10 16:44:51 +1000
commit047b7ad17ebc91c8d0b4b071e5d7f1425599bbf0 (patch)
tree0a71af0f6e4e3ec1df2b83414ed5d995e271b9e6 /archiva-modules/plugins/metadata-store-file
parent5fa4ceb731b5440b7d7439c2d924f299dc109384 (diff)
downloadarchiva-047b7ad17ebc91c8d0b4b071e5d7f1425599bbf0.tar.gz
archiva-047b7ad17ebc91c8d0b4b071e5d7f1425599bbf0.zip
fix CME
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
1 files changed, 4 insertions, 4 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 848e4a2f8..b373c8d5d 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
@@ -132,7 +132,7 @@ public class FileMetadataRepository
Properties properties = readOrCreateProperties( directory, PROJECT_VERSION_METADATA_KEY );
// remove properties that are not references or artifacts
- for ( Object key : properties.keySet() )
+ for ( Object key : new ArrayList( properties.keySet() ) )
{
String name = (String) key;
if ( !name.contains( ":" ) && !name.equals( "facetIds" ) )
@@ -243,7 +243,7 @@ public class FileMetadataRepository
List<Object> propsToRemove = new ArrayList<>();
for ( MetadataFacet facet : facetList )
{
- for ( Object key : properties.keySet() )
+ for ( Object key : new ArrayList( properties.keySet() ) )
{
String keyString = (String) key;
if ( keyString.startsWith( prefix + facet.getFacetId() + ":" ) )
@@ -642,7 +642,7 @@ public class FileMetadataRepository
properties.remove( "artifact:facetIds:" + id );
String prefix = "artifact:facet:" + id + ":";
- for ( Object key : properties.keySet() )
+ for ( Object key : new ArrayList( properties.keySet() ) )
{
String property = (String) key;
if ( property.startsWith( prefix ) )
@@ -679,7 +679,7 @@ public class FileMetadataRepository
properties.remove( "artifact:facetIds:" + id );
String prefix = "artifact:facet:" + id + ":";
- for ( Object key : properties.keySet() )
+ for ( Object key : new ArrayList( properties.keySet() ) )
{
String property = (String) key;
if ( property.startsWith( prefix ) )