]> source.dussan.org Git - archiva.git/commitdiff
[MRM-934]
authorMaria Odea B. Ching <oching@apache.org>
Thu, 4 Sep 2008 11:16:24 +0000 (11:16 +0000)
committerMaria Odea B. Ching <oching@apache.org>
Thu, 4 Sep 2008 11:16:24 +0000 (11:16 +0000)
-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

archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/search/SearchResults.java

index c82097467c7da410441944f9810528b17c41bbbb..4f0a420a87bfbc36d4131d98ba72f683766e9d40 100644 (file)
@@ -74,7 +74,7 @@ public class SearchResults
     private void addBytecodeHit( BytecodeRecord bytecode )
     {
         String key = toKey( bytecode.getArtifact() );
-
+        
         SearchResultHit hit = (SearchResultHit) this.hits.get( key );
 
         if ( hit == null )
@@ -95,7 +95,8 @@ public class SearchResults
 
         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();
     }