Apache Lucene open-source search software
clean up missing license headers in Java code thanks to ant rat-sources target in build.xml
Grant Ingersoll1516f1823664
diff --git a/contrib/dataimporthandler/src/test/java/org/apache/solr/handler/dataimport/TestErrorHandling.java b/contrib/dataimporthandler/src/test/java/org/apache/solr/handler/dataimport/TestErrorHandling.javaindex 9761a68aec9..d352ca42be5 100644--- a/contrib/dataimporthandler/src/test/java/org/apache/solr/handler/dataimport/TestErrorHandling.java+++ b/contrib/dataimporthandler/src/test/java/org/apache/solr/handler/dataimport/TestErrorHandling.java@@ -1,4 +1,20 @@package org.apache.solr.handler.dataimport;+/**+ * 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.+ */import java.io.Reader;import java.io.StringReader;diff --git a/contrib/extraction/src/test/java/org/apache/solr/handler/ExtractingRequestHandlerTest.java b/contrib/extraction/src/test/java/org/apache/solr/handler/ExtractingRequestHandlerTest.javaindex dc465c5a275..8b2aed5c1d1 100644--- a/contrib/extraction/src/test/java/org/apache/solr/handler/ExtractingRequestHandlerTest.java+++ b/contrib/extraction/src/test/java/org/apache/solr/handler/ExtractingRequestHandlerTest.java@@ -1,4 +1,20 @@package org.apache.solr.handler;+/**+ * 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.+ */import org.apache.solr.util.AbstractSolrTestCase;import org.apache.solr.request.LocalSolrQueryRequest;diff --git a/src/common/org/apache/solr/common/params/TermVectorParams.java b/src/common/org/apache/solr/common/params/TermVectorParams.javaindex cf75ac73616..8616bd2c959 100644--- a/src/common/org/apache/solr/common/params/TermVectorParams.java+++ b/src/common/org/apache/solr/common/params/TermVectorParams.java@@ -1,4 +1,20 @@package org.apache.solr.common.params;+/**+ * 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.+ *//**diff --git a/src/common/org/apache/solr/common/util/ConcurrentLRUCache.java b/src/common/org/apache/solr/common/util/ConcurrentLRUCache.javaindex 36f652f7fed..1c30886b198 100644--- a/src/common/org/apache/solr/common/util/ConcurrentLRUCache.java+++ b/src/common/org/apache/solr/common/util/ConcurrentLRUCache.java@@ -1,4 +1,20 @@package org.apache.solr.common.util;+/**+ * 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.+ */import org.apache.lucene.util.PriorityQueue;diff --git a/src/java/org/apache/solr/analysis/ArabicLetterTokenizerFactory.java b/src/java/org/apache/solr/analysis/ArabicLetterTokenizerFactory.javaindex 86524c8c102..c8d869ad3a6 100644--- a/src/java/org/apache/solr/analysis/ArabicLetterTokenizerFactory.java+++ b/src/java/org/apache/solr/analysis/ArabicLetterTokenizerFactory.java@@ -1,4 +1,20 @@package org.apache.solr.analysis;+/**+ * 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.+ */import org.apache.lucene.analysis.TokenStream;import org.apache.lucene.analysis.ar.ArabicLetterTokenizer;diff --git a/src/java/org/apache/solr/analysis/ArabicNormalizationFilterFactory.java b/src/java/org/apache/solr/analysis/ArabicNormalizationFilterFactory.javaindex 86464123f2b..3ab4d9d1254 100644--- a/src/java/org/apache/solr/analysis/ArabicNormalizationFilterFactory.java+++ b/src/java/org/apache/solr/analysis/ArabicNormalizationFilterFactory.java@@ -1,4 +1,20 @@package org.apache.solr.analysis;+/**+ * 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.+ */import org.apache.lucene.analysis.TokenStream;import org.apache.lucene.analysis.ar.ArabicNormalizationFilter;diff --git a/src/java/org/apache/solr/analysis/ArabicStemFilterFactory.java b/src/java/org/apache/solr/analysis/ArabicStemFilterFactory.javaindex 7f273a24485..db3bea240a4 100644--- a/src/java/org/apache/solr/analysis/ArabicStemFilterFactory.java+++ b/src/java/org/apache/solr/analysis/ArabicStemFilterFactory.java@@ -1,4 +1,20 @@package org.apache.solr.analysis;+/**+ * 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.+ */import org.apache.lucene.analysis.TokenStream;import org.apache.lucene.analysis.ar.ArabicStemFilter;diff --git a/src/java/org/apache/solr/core/DirectoryFactory.java b/src/java/org/apache/solr/core/DirectoryFactory.javaindex 788a300b7cb..fe59c329ea4 100755--- a/src/java/org/apache/solr/core/DirectoryFactory.java+++ b/src/java/org/apache/solr/core/DirectoryFactory.java@@ -1,4 +1,20 @@package org.apache.solr.core;+/**+ * 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.+ */import java.io.IOException;diff --git a/src/java/org/apache/solr/core/IndexDeletionPolicyWrapper.java b/src/java/org/apache/solr/core/IndexDeletionPolicyWrapper.javaindex c6144e8e6dc..5b4b208daa8 100644--- a/src/java/org/apache/solr/core/IndexDeletionPolicyWrapper.java+++ b/src/java/org/apache/solr/core/IndexDeletionPolicyWrapper.java@@ -1,4 +1,20 @@package org.apache.solr.core;+/**+ * 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.+ */import org.apache.lucene.index.IndexCommit;import org.apache.lucene.index.IndexDeletionPolicy;diff --git a/src/java/org/apache/solr/core/SolrDeletionPolicy.java b/src/java/org/apache/solr/core/SolrDeletionPolicy.javaindex b74de7aacdd..ac2ea1a446f 100644--- a/src/java/org/apache/solr/core/SolrDeletionPolicy.java+++ b/src/java/org/apache/solr/core/SolrDeletionPolicy.java@@ -1,4 +1,20 @@package org.apache.solr.core;+/**+ * 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.+ */import org.apache.lucene.index.IndexCommit;import org.apache.lucene.index.IndexDeletionPolicy;diff --git a/src/java/org/apache/solr/core/StandardDirectoryFactory.java b/src/java/org/apache/solr/core/StandardDirectoryFactory.javaindex ec74e9e6e77..60092e333c8 100755--- a/src/java/org/apache/solr/core/StandardDirectoryFactory.java+++ b/src/java/org/apache/solr/core/StandardDirectoryFactory.java@@ -1,4 +1,20 @@package org.apache.solr.core;+/**+ * 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.+ */import java.io.File;import java.io.IOException;diff --git a/src/java/org/apache/solr/search/FastLRUCache.java b/src/java/org/apache/solr/search/FastLRUCache.javaindex 6cdf479bdd8..b479e4b7ee3 100644--- a/src/java/org/apache/solr/search/FastLRUCache.java+++ b/src/java/org/apache/solr/search/FastLRUCache.java@@ -1,4 +1,20 @@package org.apache.solr.search;+/**+ * 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.+ */import org.apache.solr.common.SolrException;import org.apache.solr.common.util.ConcurrentLRUCache;diff --git a/src/java/org/apache/solr/search/function/TopValueSource.java b/src/java/org/apache/solr/search/function/TopValueSource.javaindex 35aba07d854..c2cef030ba8 100755--- a/src/java/org/apache/solr/search/function/TopValueSource.java+++ b/src/java/org/apache/solr/search/function/TopValueSource.java@@ -1,4 +1,20 @@package org.apache.solr.search.function;+/**+ * 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.+ */import org.apache.solr.search.SolrIndexReader;import org.apache.lucene.index.IndexReader;diff --git a/src/java/org/apache/solr/update/processor/Lookup3Signature.java b/src/java/org/apache/solr/update/processor/Lookup3Signature.javaindex 93aad4f13f8..3fd9fba2251 100755--- a/src/java/org/apache/solr/update/processor/Lookup3Signature.java+++ b/src/java/org/apache/solr/update/processor/Lookup3Signature.java@@ -1,4 +1,20 @@package org.apache.solr.update.processor;+/**+ * 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.+ */import java.io.UnsupportedEncodingException;import java.security.MessageDigest;diff --git a/src/java/org/apache/solr/update/processor/MD5Signature.java b/src/java/org/apache/solr/update/processor/MD5Signature.javaindex ad7665277b9..c7dec90dfc9 100755--- a/src/java/org/apache/solr/update/processor/MD5Signature.java+++ b/src/java/org/apache/solr/update/processor/MD5Signature.java@@ -1,4 +1,20 @@package org.apache.solr.update.processor;+/**+ * 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.+ */import java.io.UnsupportedEncodingException;import java.security.MessageDigest;diff --git a/src/java/org/apache/solr/update/processor/Signature.java b/src/java/org/apache/solr/update/processor/Signature.javaindex 6aa4b0a84ca..c196bcff0c3 100755--- a/src/java/org/apache/solr/update/processor/Signature.java+++ b/src/java/org/apache/solr/update/processor/Signature.java@@ -1,4 +1,20 @@package org.apache.solr.update.processor;+/**+ * 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.+ */import org.apache.solr.common.params.SolrParams;diff --git a/src/java/org/apache/solr/update/processor/SignatureUpdateProcessorFactory.java b/src/java/org/apache/solr/update/processor/SignatureUpdateProcessorFactory.javaindex 33c3e3e2866..4eeee23033c 100755--- a/src/java/org/apache/solr/update/processor/SignatureUpdateProcessorFactory.java+++ b/src/java/org/apache/solr/update/processor/SignatureUpdateProcessorFactory.java@@ -1,4 +1,20 @@package org.apache.solr.update.processor;+/**+ * 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.+ */import java.io.IOException;import java.util.ArrayList;diff --git a/src/java/org/apache/solr/update/processor/TextProfileSignature.java b/src/java/org/apache/solr/update/processor/TextProfileSignature.javaindex 4d8fcd8d50a..d333d35ad21 100755--- a/src/java/org/apache/solr/update/processor/TextProfileSignature.java+++ b/src/java/org/apache/solr/update/processor/TextProfileSignature.java@@ -1,4 +1,20 @@package org.apache.solr.update.processor;+/**+ * 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.+ */import java.util.ArrayList;import java.util.Collections;