From 495a7bf95fa56ec7b73fca2f2e94cc7fc61f68c2 Mon Sep 17 00:00:00 2001 From: Bernd Eckenfels Date: Tue, 13 Oct 2015 00:54:04 +0200 Subject: Remove Sonar Dead Store Issues. --- .../org/apache/archiva/rest/services/DefaultRepositoriesService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'archiva-modules/archiva-web/archiva-rest') diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java index 348f5d065..e0660c269 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java @@ -423,7 +423,7 @@ public class DefaultRepositoriesService String timestamp = null; File versionMetadataFile = new File( targetPath, MetadataTools.MAVEN_METADATA ); - ArchivaRepositoryMetadata versionMetadata = getMetadata( versionMetadataFile ); + /* unused */ getMetadata( versionMetadataFile ); if ( !targetPath.exists() ) { @@ -482,6 +482,7 @@ public class DefaultRepositoriesService "Artifact \'" + artifactTransferRequest.getGroupId() + ":" + artifactTransferRequest.getArtifactId() + ":" + artifactTransferRequest.getVersion() + "\' was successfully deployed to repository \'" + artifactTransferRequest.getTargetRepositoryId() + "\'"; + log.debug("copyArtifact {}", msg); } catch ( RepositoryException e ) -- cgit v1.2.3