]> source.dussan.org Git - archiva.git/commitdiff
Removed unnecessary imports and added some missing license texts
authorEdwin L. Punzalan <epunzalan@apache.org>
Tue, 27 Dec 2005 09:39:08 +0000 (09:39 +0000)
committerEdwin L. Punzalan <epunzalan@apache.org>
Tue, 27 Dec 2005 09:39:08 +0000 (09:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@359195 13f79535-47bb-0310-9956-ffa450edef68

maven-repository-indexer/src/main/java/org/apache/maven/repository/indexing/ArtifactRepositoryIndexAnalyzer.java
maven-repository-indexer/src/main/java/org/apache/maven/repository/indexing/ArtifactRepositoryIndexSearcher.java
maven-repository-indexer/src/main/java/org/apache/maven/repository/indexing/RepositoryIndex.java

index f7f2f906c853a3a4eeb5edae590925570bd0e476..de1f17587af2313cd251fec390293984bdfb105a 100644 (file)
@@ -18,8 +18,7 @@ package org.apache.maven.repository.indexing;
  */
 
 import java.io.Reader;
-import java.util.HashMap;
-import java.util.Map;
+
 import org.apache.lucene.analysis.Analyzer;
 import org.apache.lucene.analysis.CharTokenizer;
 import org.apache.lucene.analysis.TokenStream;
index 801f06ed13f457c21b6329a35e4655d939a95e0c..87fc927083fceda5d7976620427818b2ca8eed90 100644 (file)
@@ -17,30 +17,17 @@ package org.apache.maven.repository.indexing;
  * limitations under the License.
  */
 
-import java.io.File;
-import java.io.IOException;
 import java.util.ArrayList;
 import java.util.List;
-
-import org.apache.lucene.analysis.Analyzer;
-import org.apache.lucene.analysis.PerFieldAnalyzerWrapper;
-import org.apache.lucene.analysis.SimpleAnalyzer;
-import org.apache.lucene.analysis.StopAnalyzer;
-import org.apache.lucene.analysis.standard.StandardAnalyzer;
 import org.apache.lucene.document.Document;
-import org.apache.lucene.queryParser.ParseException;
 import org.apache.lucene.queryParser.QueryParser;
 import org.apache.lucene.search.Hits;
 import org.apache.lucene.search.IndexSearcher;
 import org.apache.lucene.search.Query;
 import org.apache.maven.artifact.Artifact;
-import org.apache.maven.artifact.DefaultArtifact;
 import org.apache.maven.artifact.factory.ArtifactFactory;
-import org.apache.maven.artifact.factory.DefaultArtifactFactory;
-import org.apache.maven.artifact.handler.ArtifactHandler;
-import org.apache.maven.artifact.handler.DefaultArtifactHandler;
 import org.apache.maven.artifact.repository.ArtifactRepository;
-import org.apache.maven.artifact.versioning.VersionRange;
+
 
 /**
  * This class searches the index for existing artifacts that contains the
index be7b09c0fd0699a3fa68f0d53f3a108842edc259..39de6e6cc235fd15deef985fc1bcb4ac2e51d410 100644 (file)
@@ -1,5 +1,22 @@
 package org.apache.maven.repository.indexing;
 
+/*
+ * Copyright 2001-2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 import org.apache.lucene.analysis.Analyzer;
 
 /**