]> source.dussan.org Git - archiva.git/commitdiff
Remove java5 code
authorEmmanuel Venisse <evenisse@apache.org>
Wed, 6 Sep 2006 15:49:17 +0000 (15:49 +0000)
committerEmmanuel Venisse <evenisse@apache.org>
Wed, 6 Sep 2006 15:49:17 +0000 (15:49 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@440740 13f79535-47bb-0310-9956-ffa450edef68

archiva-reports-standard/src/main/java/org/apache/maven/archiva/reporting/BadMetadataReportProcessor.java

index ec55ad6e575ff39fce9d8665f535e9c85fb09a1a..7eab35512d022bbec622cbce6e93e993febb474c 100644 (file)
@@ -26,6 +26,7 @@ import org.apache.maven.artifact.repository.metadata.RepositoryMetadata;
 import org.apache.maven.artifact.repository.metadata.Snapshot;
 import org.apache.maven.artifact.repository.metadata.Versioning;
 import org.codehaus.plexus.util.FileUtils;
+import org.codehaus.plexus.util.StringUtils;
 
 import java.io.File;
 import java.io.IOException;
@@ -213,8 +214,8 @@ public class BadMetadataReportProcessor
 
         Snapshot snapshot = metadata.getMetadata().getVersioning().getSnapshot();
 
-        String version = metadata.getBaseVersion().replace( Artifact.SNAPSHOT_VERSION,
-                                                            snapshot.getTimestamp() + "-" + snapshot.getBuildNumber() );
+        String version = StringUtils.replace( metadata.getBaseVersion(), Artifact.SNAPSHOT_VERSION,
+                                              snapshot.getTimestamp() + "-" + snapshot.getBuildNumber() );
         Artifact artifact =
             artifactFactory.createProjectArtifact( metadata.getGroupId(), metadata.getArtifactId(), version );
         artifact.isSnapshot(); // trigger baseVersion correction