Apache Lucene open-source search software
Added license headers and removed unused imports
Shalin Shekhar Mangar6a1e2c9b1498
diff --git a/contrib/velocity/src/main/java/org/apache/solr/request/SolrVelocityResourceLoader.java b/contrib/velocity/src/main/java/org/apache/solr/request/SolrVelocityResourceLoader.javaindex b485213adfc..ceea89aff0b 100644--- a/contrib/velocity/src/main/java/org/apache/solr/request/SolrVelocityResourceLoader.java+++ b/contrib/velocity/src/main/java/org/apache/solr/request/SolrVelocityResourceLoader.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.request;import org.apache.velocity.runtime.resource.loader.ResourceLoader;diff --git a/src/test/org/apache/solr/schema/TestBinaryField.java b/src/test/org/apache/solr/schema/TestBinaryField.javaindex 2db83903937..3580e6e0724 100644--- a/src/test/org/apache/solr/schema/TestBinaryField.java+++ b/src/test/org/apache/solr/schema/TestBinaryField.java@@ -1,10 +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.schema;import junit.framework.TestCase;import org.apache.solr.client.solrj.SolrQuery;import org.apache.solr.client.solrj.beans.Field;import org.apache.solr.client.solrj.embedded.JettySolrRunner;-import org.apache.solr.client.solrj.impl.BinaryRequestWriter;import org.apache.solr.client.solrj.impl.CommonsHttpSolrServer;import org.apache.solr.client.solrj.response.QueryResponse;import org.apache.solr.common.SolrDocument;diff --git a/src/test/org/apache/solr/schema/UUIDFieldTest.java b/src/test/org/apache/solr/schema/UUIDFieldTest.javaindex a4fc1194dbb..255e0d32b36 100644--- a/src/test/org/apache/solr/schema/UUIDFieldTest.java+++ b/src/test/org/apache/solr/schema/UUIDFieldTest.java@@ -1,7 +1,21 @@+/**+ * 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 java.util.UUID;-import junit.framework.TestCase;import org.apache.solr.common.SolrException;diff --git a/src/test/org/apache/solr/search/TestFastLRUCache.java b/src/test/org/apache/solr/search/TestFastLRUCache.javaindex 99841a34a00..2df9ef500bd 100644--- a/src/test/org/apache/solr/search/TestFastLRUCache.java+++ b/src/test/org/apache/solr/search/TestFastLRUCache.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.search;import junit.framework.TestCase;diff --git a/src/test/org/apache/solr/search/function/NvlValueSourceParser.java b/src/test/org/apache/solr/search/function/NvlValueSourceParser.javaindex 852b4d55fef..37d6f0d33a3 100755--- a/src/test/org/apache/solr/search/function/NvlValueSourceParser.java+++ b/src/test/org/apache/solr/search/function/NvlValueSourceParser.java@@ -1,12 +1,26 @@+/**+ * 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.search.function;import org.apache.lucene.queryParser.ParseException;import org.apache.solr.common.util.NamedList;import org.apache.solr.search.FunctionQParser;import org.apache.solr.search.ValueSourceParser;-import org.apache.solr.search.function.DocValues;-import org.apache.solr.search.function.SimpleFloatFunction;-import org.apache.solr.search.function.ValueSource;/*** A sample ValueSourceParser for testing. Approximates the oracle NVL function,