diff options
author | Olivier Lamy <olamy@apache.org> | 2012-12-31 14:14:24 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-12-31 14:14:24 +0000 |
commit | ee548d9fb5b750604b73b26385757ad547b0bcfb (patch) | |
tree | 4c2e61bc2cafcb36ca2bdb118ba5208e1890f2df /archiva-modules/plugins | |
parent | 7afb00d1c8088c6cf777d3db72bffaaf980e587a (diff) | |
download | archiva-ee548d9fb5b750604b73b26385757ad547b0bcfb.tar.gz archiva-ee548d9fb5b750604b73b26385757ad547b0bcfb.zip |
use indexOf(char)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1427127 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/plugins')
-rw-r--r-- | archiva-modules/plugins/problem-reports/src/main/java/org/apache/archiva/reports/consumers/DuplicateArtifactsConsumer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archiva-modules/plugins/problem-reports/src/main/java/org/apache/archiva/reports/consumers/DuplicateArtifactsConsumer.java b/archiva-modules/plugins/problem-reports/src/main/java/org/apache/archiva/reports/consumers/DuplicateArtifactsConsumer.java index 220b41202..a2ceb9764 100644 --- a/archiva-modules/plugins/problem-reports/src/main/java/org/apache/archiva/reports/consumers/DuplicateArtifactsConsumer.java +++ b/archiva-modules/plugins/problem-reports/src/main/java/org/apache/archiva/reports/consumers/DuplicateArtifactsConsumer.java @@ -196,7 +196,7 @@ public class DuplicateArtifactsConsumer for ( ArtifactMetadata dupArtifact : results ) { - String id = path.substring( path.lastIndexOf( "/" ) + 1 ); + String id = path.substring( path.lastIndexOf( '/' ) + 1 ); if ( dupArtifact.getId().equals( id ) && dupArtifact.getNamespace().equals( originalArtifact.getNamespace() ) && dupArtifact.getProject().equals( originalArtifact.getProject() ) && dupArtifact.getVersion().equals( |