Apache Lucene open-source search software
Added license headers and removed unused imports
Shalin Shekhar Mangar4f492a5ee1f6
diff --git a/src/test/org/apache/solr/SolrInfoMBeanTest.java b/src/test/org/apache/solr/SolrInfoMBeanTest.javaindex 6ccf48c2327..82423461d66 100644--- a/src/test/org/apache/solr/SolrInfoMBeanTest.java+++ b/src/test/org/apache/solr/SolrInfoMBeanTest.java@@ -1,16 +1,22 @@+/**+ * Licensed to the Apache Software Foundation (ASF) under one or more+ * contributor license agreements. See the NOTICE file distributed with+ * this work for additional information regarding copyright ownership.+ * The ASF licenses this file to You 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.+ */package org.apache.solr;-import java.io.File;-import java.net.URL;-import java.net.URLDecoder;-import java.util.ArrayList;-import java.util.Enumeration;-import java.util.List;--import javax.management.Query;--import org.apache.lucene.search.function.FieldCacheSource;-import org.apache.solr.common.util.NamedList;+import junit.framework.TestCase;import org.apache.solr.core.SolrInfoMBean;import org.apache.solr.handler.StandardRequestHandler;import org.apache.solr.handler.admin.LukeRequestHandler;@@ -18,10 +24,12 @@ import org.apache.solr.handler.component.SearchComponent;import org.apache.solr.handler.component.SearchHandler;import org.apache.solr.highlight.DefaultSolrHighlighter;import org.apache.solr.search.LRUCache;-import org.apache.solr.search.QueryUtils;-import org.apache.solr.update.UpdateHandler;-import junit.framework.TestCase;+import java.io.File;+import java.net.URL;+import java.util.ArrayList;+import java.util.Enumeration;+import java.util.List;/*** A simple test used to increase code coverage for some standard things...diff --git a/src/test/org/apache/solr/core/AlternateDirectoryTest.java b/src/test/org/apache/solr/core/AlternateDirectoryTest.javaindex 39fe7b8158f..7833aadc554 100755--- a/src/test/org/apache/solr/core/AlternateDirectoryTest.java+++ b/src/test/org/apache/solr/core/AlternateDirectoryTest.java@@ -1,3 +1,19 @@+/**+ * Licensed to the Apache Software Foundation (ASF) under one or more+ * contributor license agreements. See the NOTICE file distributed with+ * this work for additional information regarding copyright ownership.+ * The ASF licenses this file to You 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.+ */package org.apache.solr.core;import java.io.IOException;diff --git a/src/test/org/apache/solr/core/FakeDeletionPolicy.java b/src/test/org/apache/solr/core/FakeDeletionPolicy.javaindex acd08d61439..54a76ca854b 100644--- a/src/test/org/apache/solr/core/FakeDeletionPolicy.java+++ b/src/test/org/apache/solr/core/FakeDeletionPolicy.java@@ -1,3 +1,19 @@+/**+ * Licensed to the Apache Software Foundation (ASF) under one or more+ * contributor license agreements. See the NOTICE file distributed with+ * this work for additional information regarding copyright ownership.+ * The ASF licenses this file to You 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.+ */package org.apache.solr.core;import org.apache.lucene.index.IndexDeletionPolicy;diff --git a/src/test/org/apache/solr/core/MockQuerySenderListenerReqHandler.java b/src/test/org/apache/solr/core/MockQuerySenderListenerReqHandler.javaindex a814b4953c1..8755274f122 100644--- a/src/test/org/apache/solr/core/MockQuerySenderListenerReqHandler.java+++ b/src/test/org/apache/solr/core/MockQuerySenderListenerReqHandler.java@@ -1,3 +1,19 @@+/**+ * Licensed to the Apache Software Foundation (ASF) under one or more+ * contributor license agreements. See the NOTICE file distributed with+ * this work for additional information regarding copyright ownership.+ * The ASF licenses this file to You 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.+ */package org.apache.solr.core;import org.apache.solr.handler.RequestHandlerBase;diff --git a/src/test/org/apache/solr/core/TestArbitraryIndexDir.java b/src/test/org/apache/solr/core/TestArbitraryIndexDir.javaindex 4164716fbfc..189aa493549 100644--- a/src/test/org/apache/solr/core/TestArbitraryIndexDir.java+++ b/src/test/org/apache/solr/core/TestArbitraryIndexDir.java@@ -1,3 +1,19 @@+/**+ * Licensed to the Apache Software Foundation (ASF) under one or more+ * contributor license agreements. See the NOTICE file distributed with+ * this work for additional information regarding copyright ownership.+ * The ASF licenses this file to You 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.+ */package org.apache.solr.core;import java.io.File;diff --git a/src/test/org/apache/solr/core/TestSolrDeletionPolicy1.java b/src/test/org/apache/solr/core/TestSolrDeletionPolicy1.javaindex 298a1c2804b..8df9a9c838e 100644--- a/src/test/org/apache/solr/core/TestSolrDeletionPolicy1.java+++ b/src/test/org/apache/solr/core/TestSolrDeletionPolicy1.java@@ -1,3 +1,19 @@+/**+ * Licensed to the Apache Software Foundation (ASF) under one or more+ * contributor license agreements. See the NOTICE file distributed with+ * this work for additional information regarding copyright ownership.+ * The ASF licenses this file to You 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.+ */package org.apache.solr.core;import org.apache.lucene.index.IndexCommit;diff --git a/src/test/org/apache/solr/core/TestSolrDeletionPolicy2.java b/src/test/org/apache/solr/core/TestSolrDeletionPolicy2.javaindex b7abea4d26c..e06ef5e9eec 100644--- a/src/test/org/apache/solr/core/TestSolrDeletionPolicy2.java+++ b/src/test/org/apache/solr/core/TestSolrDeletionPolicy2.java@@ -1,3 +1,19 @@+/**+ * Licensed to the Apache Software Foundation (ASF) under one or more+ * contributor license agreements. See the NOTICE file distributed with+ * this work for additional information regarding copyright ownership.+ * The ASF licenses this file to You 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.+ */package org.apache.solr.core;import org.apache.solr.util.AbstractSolrTestCase;diff --git a/src/test/org/apache/solr/handler/XmlUpdateRequestHandlerTest.java b/src/test/org/apache/solr/handler/XmlUpdateRequestHandlerTest.javaindex 5f4b95eb4df..e7ce40663ba 100644--- a/src/test/org/apache/solr/handler/XmlUpdateRequestHandlerTest.java+++ b/src/test/org/apache/solr/handler/XmlUpdateRequestHandlerTest.java@@ -1,3 +1,19 @@+/**+ * Licensed to the Apache Software Foundation (ASF) under one or more+ * contributor license agreements. See the NOTICE file distributed with+ * this work for additional information regarding copyright ownership.+ * The ASF licenses this file to You 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.+ */package org.apache.solr.handler;import org.apache.solr.util.AbstractSolrTestCase;diff --git a/src/test/org/apache/solr/highlight/DummyHighlighter.java b/src/test/org/apache/solr/highlight/DummyHighlighter.javaindex 90ce941c2df..cce6173672a 100644--- a/src/test/org/apache/solr/highlight/DummyHighlighter.java+++ b/src/test/org/apache/solr/highlight/DummyHighlighter.java@@ -1,3 +1,19 @@+/**+ * Licensed to the Apache Software Foundation (ASF) under one or more+ * contributor license agreements. See the NOTICE file distributed with+ * this work for additional information regarding copyright ownership.+ * The ASF licenses this file to You 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.+ */package org.apache.solr.highlight;import java.io.IOException;diff --git a/src/test/org/apache/solr/highlight/HighlighterConfigTest.java b/src/test/org/apache/solr/highlight/HighlighterConfigTest.javaindex e38ff631c3f..d470bdeaecb 100644--- a/src/test/org/apache/solr/highlight/HighlighterConfigTest.java+++ b/src/test/org/apache/solr/highlight/HighlighterConfigTest.java@@ -1,18 +1,25 @@+/**+ * Licensed to the Apache Software Foundation (ASF) under one or more+ * contributor license agreements. See the NOTICE file distributed with+ * this work for additional information regarding copyright ownership.+ * The ASF licenses this file to You 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.+ */package org.apache.solr.highlight;-import java.io.IOException;-import java.util.HashMap;--import org.apache.lucene.search.Query;-import org.apache.solr.common.util.NamedList;-import org.apache.solr.common.util.SimpleOrderedMap;-import org.apache.solr.core.Config;-import org.apache.solr.core.SolrCore;-import org.apache.solr.request.SolrQueryRequest;-import org.apache.solr.search.DocList;import org.apache.solr.util.AbstractSolrTestCase;import org.apache.solr.util.TestHarness;+import java.util.HashMap;public class HighlighterConfigTest extends AbstractSolrTestCase {@Override public String getSchemaFile() { return "schema.xml"; }diff --git a/src/test/org/apache/solr/schema/CustomSimilarityFactory.java b/src/test/org/apache/solr/schema/CustomSimilarityFactory.javaindex b5f551f7a1a..a770296b44b 100644--- a/src/test/org/apache/solr/schema/CustomSimilarityFactory.java+++ b/src/test/org/apache/solr/schema/CustomSimilarityFactory.java@@ -1,3 +1,19 @@+/**+ * Licensed to the Apache Software Foundation (ASF) under one or more+ * contributor license agreements. See the NOTICE file distributed with+ * this work for additional information regarding copyright ownership.+ * The ASF licenses this file to You 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.+ */package org.apache.solr.schema;import org.apache.lucene.search.Similarity;diff --git a/src/test/org/apache/solr/schema/MockConfigurableSimilarity.java b/src/test/org/apache/solr/schema/MockConfigurableSimilarity.javaindex ee416f30e70..36021fab4e7 100644--- a/src/test/org/apache/solr/schema/MockConfigurableSimilarity.java+++ b/src/test/org/apache/solr/schema/MockConfigurableSimilarity.java@@ -1,3 +1,19 @@+/**+ * Licensed to the Apache Software Foundation (ASF) under one or more+ * contributor license agreements. See the NOTICE file distributed with+ * this work for additional information regarding copyright ownership.+ * The ASF licenses this file to You 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.+ */package org.apache.solr.schema;import org.apache.lucene.search.DefaultSimilarity;