aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-reports-standard
diff options
context:
space:
mode:
authorEmmanuel Venisse <evenisse@apache.org>2006-09-06 15:49:17 +0000
committerEmmanuel Venisse <evenisse@apache.org>2006-09-06 15:49:17 +0000
commite0386221ad4f6118a42c98d62b5e5b97d39858ca (patch)
tree9b045c817a30422755e59bfe2c5000ff4d1447a7 /archiva-reports-standard
parente4cfdac7b32ee1cdc0c76a01914cd33d0d5b704b (diff)
downloadarchiva-e0386221ad4f6118a42c98d62b5e5b97d39858ca.tar.gz
archiva-e0386221ad4f6118a42c98d62b5e5b97d39858ca.zip
Remove java5 code
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@440740 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-reports-standard')
-rw-r--r--archiva-reports-standard/src/main/java/org/apache/maven/archiva/reporting/BadMetadataReportProcessor.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/archiva-reports-standard/src/main/java/org/apache/maven/archiva/reporting/BadMetadataReportProcessor.java b/archiva-reports-standard/src/main/java/org/apache/maven/archiva/reporting/BadMetadataReportProcessor.java
index ec55ad6e5..7eab35512 100644
--- a/archiva-reports-standard/src/main/java/org/apache/maven/archiva/reporting/BadMetadataReportProcessor.java
+++ b/archiva-reports-standard/src/main/java/org/apache/maven/archiva/reporting/BadMetadataReportProcessor.java
@@ -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