Apache Lucene open-source search software
LUCENE-4570: Add missing license headers
Uwe Schindlere714ff0bc3f8
diff --git a/lucene/tools/forbiddenApis/commons-io.txt b/lucene/tools/forbiddenApis/commons-io.txtindex d8e089c931d..6d8b08a2ba9 100644--- a/lucene/tools/forbiddenApis/commons-io.txt+++ b/lucene/tools/forbiddenApis/commons-io.txt@@ -1,3 +1,18 @@+# 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.+# These methods and classes from commons-io should not be used by Solr classes (unsafe, no charset,...):org.apache.commons.io.IOUtils#copy(java.io.InputStream,java.io.Writer)diff --git a/lucene/tools/forbiddenApis/executors.txt b/lucene/tools/forbiddenApis/executors.txtindex dfb9df5aa96..cb5b248595d 100644--- a/lucene/tools/forbiddenApis/executors.txt+++ b/lucene/tools/forbiddenApis/executors.txt@@ -1,3 +1,18 @@+# 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.+# These methods spawn threads with vague names. Use a custom thread factory and name# threads so that you can tell (by its name) which executor it is associated with.# see Solr's DefaultSolrThreadFactorydiff --git a/lucene/tools/forbiddenApis/jdk-deprecated.txt b/lucene/tools/forbiddenApis/jdk-deprecated.txtindex b175062f1f7..ddeb95eccec 100644--- a/lucene/tools/forbiddenApis/jdk-deprecated.txt+++ b/lucene/tools/forbiddenApis/jdk-deprecated.txt@@ -1,3 +1,18 @@+# 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.+# these are all deprecated in jdk 6: make them fail the build (java[x].* only)# http://docs.oracle.com/javase/6/docs/api/deprecated-list.html# TODO: would be great to find a simple way to autogen thisdiff --git a/lucene/tools/forbiddenApis/jdk.txt b/lucene/tools/forbiddenApis/jdk.txtindex f29b561bc03..eec96046c84 100644--- a/lucene/tools/forbiddenApis/jdk.txt+++ b/lucene/tools/forbiddenApis/jdk.txt@@ -1,3 +1,18 @@+# 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.+# These methods and classes should not be used by Lucene classes (unsafe, no charset,...):java.lang.String#<init>(byte[])diff --git a/lucene/tools/forbiddenApis/system-out.txt b/lucene/tools/forbiddenApis/system-out.txtindex 790b5662e7e..b51c8a3a444 100644--- a/lucene/tools/forbiddenApis/system-out.txt+++ b/lucene/tools/forbiddenApis/system-out.txt@@ -1,3 +1,18 @@+# 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.+# Don't allow System.out/System.err usage in non-test Lucene codejava.lang.System#outjava.lang.System#errdiff --git a/lucene/tools/forbiddenApis/tests.txt b/lucene/tools/forbiddenApis/tests.txtindex 2fca956d6a2..a99ac676b44 100644--- a/lucene/tools/forbiddenApis/tests.txt+++ b/lucene/tools/forbiddenApis/tests.txt@@ -1,3 +1,18 @@+# 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.+# All classes should derive from LuceneTestCasejunit.framework.TestCase