[MRM-934]

-added version in the key of the search result hit


git-svn-id: https://svn.apache.org/repos/asf/archiva/branches@691966 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Maria Odea B. Ching 2008-09-04 11:16:24 +00:00
parent 0ccc4737e0
commit c967b733aa

View File

@ -74,7 +74,7 @@ else if ( record instanceof BytecodeRecord )
private void addBytecodeHit( BytecodeRecord bytecode )
{
String key = toKey( bytecode.getArtifact() );
SearchResultHit hit = (SearchResultHit) this.hits.get( key );
if ( hit == null )
@ -95,7 +95,8 @@ private String toKey( ArchivaArtifact artifact )
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();
}