diff options
author | Maria Odea B. Ching <oching@apache.org> | 2010-06-04 02:16:24 +0000 |
---|---|---|
committer | Maria Odea B. Ching <oching@apache.org> | 2010-06-04 02:16:24 +0000 |
commit | f51b049d51fef366db0943ef43d399ee3e1029be (patch) | |
tree | ad0739693116f7c3346ed2d5ffb88cfc1fe7e62f /archiva-modules/plugins/generic-metadata-support | |
parent | d09f0872aff71fc9183bc392558305c5df9e6673 (diff) | |
download | archiva-f51b049d51fef366db0943ef43d399ee3e1029be.tar.gz archiva-f51b049d51fef366db0943ef43d399ee3e1029be.zip |
fixed formatting
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@951241 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/plugins/generic-metadata-support')
2 files changed, 15 insertions, 14 deletions
diff --git a/archiva-modules/plugins/generic-metadata-support/src/main/java/org/apache/archiva/metadata/generic/GenericMetadataFacet.java b/archiva-modules/plugins/generic-metadata-support/src/main/java/org/apache/archiva/metadata/generic/GenericMetadataFacet.java index 8bbe94553..99b78bf9d 100644 --- a/archiva-modules/plugins/generic-metadata-support/src/main/java/org/apache/archiva/metadata/generic/GenericMetadataFacet.java +++ b/archiva-modules/plugins/generic-metadata-support/src/main/java/org/apache/archiva/metadata/generic/GenericMetadataFacet.java @@ -27,11 +27,11 @@ import org.apache.archiva.metadata.model.MetadataFacet; public class GenericMetadataFacet implements MetadataFacet -{ +{ private Map<String, String> additionalProperties; - + public static final String FACET_ID = "org.apache.archiva.metadata.generic"; - + public String getFacetId() { return FACET_ID; @@ -43,13 +43,13 @@ public class GenericMetadataFacet } public void fromProperties( Map<String, String> properties ) - { - if( additionalProperties == null ) + { + if ( additionalProperties == null ) { - additionalProperties = new TreeMap<String, String>(); + additionalProperties = new TreeMap<String, String>(); } - - for( String key : properties.keySet() ) + + for ( String key : properties.keySet() ) { additionalProperties.put( key, properties.get( key ) ); } @@ -58,18 +58,18 @@ public class GenericMetadataFacet public Map<String, String> toProperties() { Map<String, String> properties = new TreeMap<String, String>(); - - if( additionalProperties != null ) + + if ( additionalProperties != null ) { - for( String key : additionalProperties.keySet() ) + for ( String key : additionalProperties.keySet() ) { properties.put( key, additionalProperties.get( key ) ); } } - + return properties; } - + public Map<String, String> getAdditionalProperties() { return additionalProperties; diff --git a/archiva-modules/plugins/generic-metadata-support/src/main/java/org/apache/archiva/metadata/generic/GenericMetadataFacetFactory.java b/archiva-modules/plugins/generic-metadata-support/src/main/java/org/apache/archiva/metadata/generic/GenericMetadataFacetFactory.java index e8e9a7d45..63a52bcca 100644 --- a/archiva-modules/plugins/generic-metadata-support/src/main/java/org/apache/archiva/metadata/generic/GenericMetadataFacetFactory.java +++ b/archiva-modules/plugins/generic-metadata-support/src/main/java/org/apache/archiva/metadata/generic/GenericMetadataFacetFactory.java @@ -23,7 +23,8 @@ import org.apache.archiva.metadata.model.MetadataFacet; import org.apache.archiva.metadata.model.MetadataFacetFactory; /** - * @plexus.component role="org.apache.archiva.metadata.model.MetadataFacetFactory" role-hint="org.apache.archiva.metadata.generic" + * @plexus.component role="org.apache.archiva.metadata.model.MetadataFacetFactory" + * role-hint="org.apache.archiva.metadata.generic" */ public class GenericMetadataFacetFactory implements MetadataFacetFactory |