-added version in the key of the search result hit
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/archiva-1.1.x@691966
13f79535-47bb-0310-9956-
ffa450edef68
private void addBytecodeHit( BytecodeRecord bytecode )
{
String key = toKey( bytecode.getArtifact() );
-
+
SearchResultHit hit = (SearchResultHit) this.hits.get( key );
if ( hit == null )
key.append( StringUtils.defaultString( artifact.getModel().getRepositoryId() ) ).append( ":" );
key.append( StringUtils.defaultString( artifact.getGroupId() ) ).append( ":" );
- key.append( StringUtils.defaultString( artifact.getArtifactId() ) );
+ key.append( StringUtils.defaultString( artifact.getArtifactId() ) ).append( ":" );
+ key.append( StringUtils.defaultString( artifact.getVersion() ) );
return key.toString();
}