diff --git a/maven-repository-indexer/src/main/java/org/apache/maven/repository/indexing/RepositoryArtifactIndex.java b/maven-repository-indexer/src/main/java/org/apache/maven/repository/indexing/RepositoryArtifactIndex.java index 19bfe3d1a..03803ed53 100644 --- a/maven-repository-indexer/src/main/java/org/apache/maven/repository/indexing/RepositoryArtifactIndex.java +++ b/maven-repository-indexer/src/main/java/org/apache/maven/repository/indexing/RepositoryArtifactIndex.java @@ -62,6 +62,7 @@ public interface RepositoryArtifactIndex * Delete records from the index. Simply ignore the request any did not exist. * * @param records the records to delete + * @throws RepositoryIndexException if there is a problem removing the record */ void deleteRecords( Collection records ) throws RepositoryIndexException; diff --git a/maven-repository-indexer/src/main/java/org/apache/maven/repository/indexing/lucene/LuceneIndexRecordConverter.java b/maven-repository-indexer/src/main/java/org/apache/maven/repository/indexing/lucene/LuceneIndexRecordConverter.java index 3f6ffb1a3..7aaf123e3 100644 --- a/maven-repository-indexer/src/main/java/org/apache/maven/repository/indexing/lucene/LuceneIndexRecordConverter.java +++ b/maven-repository-indexer/src/main/java/org/apache/maven/repository/indexing/lucene/LuceneIndexRecordConverter.java @@ -41,6 +41,7 @@ public interface LuceneIndexRecordConverter * * @param document the document * @return the record + * @throws java.text.ParseException if there is a problem parsing a field (specifically, dates) */ RepositoryIndexRecord convert( Document document ) throws ParseException;