From: Maria Odea B. Ching Date: Fri, 4 Jun 2010 02:16:24 +0000 (+0000) Subject: fixed formatting X-Git-Tag: archiva-1.4-M1~931 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f51b049d51fef366db0943ef43d399ee3e1029be;p=archiva.git fixed formatting git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@951241 13f79535-47bb-0310-9956-ffa450edef68 --- 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 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 properties ) - { - if( additionalProperties == null ) + { + if ( additionalProperties == null ) { - additionalProperties = new TreeMap(); + additionalProperties = new TreeMap(); } - - 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 toProperties() { Map properties = new TreeMap(); - - 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 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