}
// attempt to find the start of the 'path'
- pos = url.indexOf( "/", postProtocolPos );
+ pos = url.indexOf( '/', postProtocolPos );
// no path specified - ex "http://localhost"
if ( pos == ( -1 ) )
{
StringBuilder ret = new StringBuilder();
- int idx = path.lastIndexOf( "/" );
+ int idx = path.lastIndexOf( '/' );
if ( idx > 0 )
{
ret.append( path.substring( 0, idx + 1 ) );
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(