From: Maria Odea B. Ching Date: Mon, 7 Jun 2010 08:45:18 +0000 (+0000) Subject: fixed formatting X-Git-Tag: archiva-1.4-M1~924 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a1cfde68aed08594883f30ef9f9a21facbf9d89f;p=archiva.git fixed formatting git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@952141 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/ShowArtifactAction.java b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/ShowArtifactAction.java index 3c84d2417..85f90930d 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/ShowArtifactAction.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/ShowArtifactAction.java @@ -105,7 +105,7 @@ public class ShowArtifactAction private Map> artifacts; private boolean dependencyTree = false; - + private String deleteItem; private Map genericMetadata; @@ -338,7 +338,7 @@ public class ShowArtifactAction genericMetadata = projectMetadata.getFacet( GenericMetadataFacet.FACET_ID ).toProperties(); model = projectMetadata; - + propertyName = ""; propertyValue = ""; @@ -349,7 +349,7 @@ public class ShowArtifactAction { ProjectVersionMetadata projectMetadata = getProjectVersionMetadata(); String errorMsg = null; - + if ( projectMetadata == null ) { addActionError( errorMsg != null ? errorMsg : "Artifact not found" ); @@ -357,25 +357,25 @@ public class ShowArtifactAction } if ( projectMetadata.getFacet( GenericMetadataFacet.FACET_ID ) != null ) - { + { genericMetadata = projectMetadata.getFacet( GenericMetadataFacet.FACET_ID ).toProperties(); - + if ( !StringUtils.isEmpty( deleteItem ) ) { genericMetadata.remove( deleteItem ); - + updateProjectMetadata( projectMetadata ); - + projectMetadata = getProjectVersionMetadata(); genericMetadata = projectMetadata.getFacet( GenericMetadataFacet.FACET_ID ).toProperties(); model = projectMetadata; - addActionMessage( "Property successfully deleted." ); + addActionMessage( "Property successfully deleted." ); } - - deleteItem = ""; + + deleteItem = ""; } else { @@ -390,10 +390,10 @@ public class ShowArtifactAction { GenericMetadataFacet genericMetadataFacet = new GenericMetadataFacet(); genericMetadataFacet.fromProperties( genericMetadata ); - + projectMetadata.addFacet( genericMetadataFacet ); - - metadataRepository.updateProjectVersion( repositoryId, groupId, artifactId, projectMetadata ); + + metadataRepository.updateProjectVersion( repositoryId, groupId, artifactId, projectMetadata ); } @Override @@ -489,7 +489,7 @@ public class ShowArtifactAction { return artifacts.keySet(); } - + public boolean isDependencyTree() { return dependencyTree; @@ -529,7 +529,7 @@ public class ShowArtifactAction { this.propertyValue = propertyValue; } - + public void setRepositoryFactory( RepositoryContentFactory repositoryFactory ) { this.repositoryFactory = repositoryFactory;