maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r367192 - in /maven/repository-manager/trunk/maven-repository-indexer/src: main/java/org/apache/maven/repository/indexing/PomRepositoryIndex.java test/java/org/apache/maven/repository/indexing/PomRepositoryIndexingTest.java
Date Mon, 09 Jan 2006 04:29:34 GMT
Author: brett
Date: Sun Jan  8 20:29:27 2006
New Revision: 367192

URL: http://svn.apache.org/viewcvs?rev=367192&view=rev
Log:
remove unused index method - we already obtain the actual instance

Modified:
    maven/repository-manager/trunk/maven-repository-indexer/src/main/java/org/apache/maven/repository/indexing/PomRepositoryIndex.java
    maven/repository-manager/trunk/maven-repository-indexer/src/test/java/org/apache/maven/repository/indexing/PomRepositoryIndexingTest.java

Modified: maven/repository-manager/trunk/maven-repository-indexer/src/main/java/org/apache/maven/repository/indexing/PomRepositoryIndex.java
URL: http://svn.apache.org/viewcvs/maven/repository-manager/trunk/maven-repository-indexer/src/main/java/org/apache/maven/repository/indexing/PomRepositoryIndex.java?rev=367192&r1=367191&r2=367192&view=diff
==============================================================================
--- maven/repository-manager/trunk/maven-repository-indexer/src/main/java/org/apache/maven/repository/indexing/PomRepositoryIndex.java
(original)
+++ maven/repository-manager/trunk/maven-repository-indexer/src/main/java/org/apache/maven/repository/indexing/PomRepositoryIndex.java
Sun Jan  8 20:29:27 2006
@@ -98,20 +98,6 @@
         return analyzer;
     }
 
-    public void index( Object obj )
-        throws RepositoryIndexException
-    {
-        if ( obj instanceof Model )
-        {
-            indexPom( (Model) obj );
-        }
-        else
-        {
-            throw new RepositoryIndexException(
-                "This instance of indexer cannot index instances of " + obj.getClass().getName()
);
-        }
-    }
-
     public void indexPom( Model pom )
         throws RepositoryIndexException
     {

Modified: maven/repository-manager/trunk/maven-repository-indexer/src/test/java/org/apache/maven/repository/indexing/PomRepositoryIndexingTest.java
URL: http://svn.apache.org/viewcvs/maven/repository-manager/trunk/maven-repository-indexer/src/test/java/org/apache/maven/repository/indexing/PomRepositoryIndexingTest.java?rev=367192&r1=367191&r2=367192&view=diff
==============================================================================
--- maven/repository-manager/trunk/maven-repository-indexer/src/test/java/org/apache/maven/repository/indexing/PomRepositoryIndexingTest.java
(original)
+++ maven/repository-manager/trunk/maven-repository-indexer/src/test/java/org/apache/maven/repository/indexing/PomRepositoryIndexingTest.java
Sun Jan  8 20:29:27 2006
@@ -124,16 +124,6 @@
 
         indexer = factory.createPomRepositoryIndex( indexPath, repository );
 
-        try
-        {
-            indexer.index( "should fail" );
-            fail( "Must throw exception on add non-Artifact object." );
-        }
-        catch ( RepositoryIndexException e )
-        {
-            // expected
-        }
-
         indexer.close();
     }
 
@@ -454,7 +444,7 @@
         indexer.indexPom( pom );
 
         pom = getPom( "test", "test-artifactId", "1.0" );
-        indexer.index( pom );
+        indexer.indexPom( pom );
 
         indexer.optimize();
         indexer.close();



Mime
View raw message