mirror of
https://github.com/apache/archiva.git
synced 2025-02-07 02:29:23 +00:00
[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:
parent
0ccc4737e0
commit
c967b733aa
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user