archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From och...@apache.org
Subject svn commit: r691968 - /archiva/trunk/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/search/SearchResults.java
Date Thu, 04 Sep 2008 11:24:03 GMT
Author: oching
Date: Thu Sep  4 04:24:02 2008
New Revision: 691968

URL: http://svn.apache.org/viewvc?rev=691968&view=rev
Log:
merged -r691966 (MRM-934: added version in the key of the search result hit) from branch

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

Modified: archiva/trunk/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/search/SearchResults.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/search/SearchResults.java?rev=691968&r1=691967&r2=691968&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/search/SearchResults.java
(original)
+++ archiva/trunk/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/search/SearchResults.java
Thu Sep  4 04:24:02 2008
@@ -74,7 +74,7 @@
     private void addBytecodeHit( BytecodeRecord bytecode )
     {
         String key = toKey( bytecode.getArtifact() );
-
+        
         SearchResultHit hit = (SearchResultHit) this.hits.get( key );
 
         if ( hit == null )
@@ -95,7 +95,8 @@
 
         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();
     }



Mime
View raw message