Apache Lucene open-source search software
adjust license headers to be ASL 2.0
Erik Hatcher21431112fe39
diff --git a/contrib/analyzers/src/java/org/apache/lucene/analysis/KeywordTokenizer.java b/contrib/analyzers/src/java/org/apache/lucene/analysis/KeywordTokenizer.javaindex d712828a5df..ea3d409dc79 100644--- a/contrib/analyzers/src/java/org/apache/lucene/analysis/KeywordTokenizer.java+++ b/contrib/analyzers/src/java/org/apache/lucene/analysis/KeywordTokenizer.java@@ -1,17 +1,14 @@package org.apache.lucene.analysis;-import java.io.IOException;-import java.io.Reader;-/**- * Copyright 2005 The Apache Software Foundation- * <p/>+ * Copyright 2004-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- * <p/>- * http://www.apache.org/licenses/LICENSE-2.0- * <p/>+ *+ * 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.@@ -19,6 +16,12 @@ import java.io.Reader;* limitations under the License.*/+import java.io.IOException;+import java.io.Reader;++/**+ * Emits the entire input as a single token.+ */public class KeywordTokenizer extends Tokenizer {private static final int DEFAULT_BUFFER_SIZE=256;diff --git a/contrib/analyzers/src/java/org/apache/lucene/analysis/br/BrazilianAnalyzer.java b/contrib/analyzers/src/java/org/apache/lucene/analysis/br/BrazilianAnalyzer.javaindex 8308dcb4960..7929f6fc5c6 100644--- a/contrib/analyzers/src/java/org/apache/lucene/analysis/br/BrazilianAnalyzer.java+++ b/contrib/analyzers/src/java/org/apache/lucene/analysis/br/BrazilianAnalyzer.java@@ -1,57 +1,19 @@package org.apache.lucene.analysis.br;-/* ====================================================================- * The Apache Software License, Version 1.1- *- * Copyright (c) 2004 The Apache Software Foundation. All rights- * reserved.- *- * Redistribution and use in source and binary forms, with or without- * modification, are permitted provided that the following conditions- * are met:- *- * 1. Redistributions of source code must retain the above copyright- * notice, this list of conditions and the following disclaimer.- *- * 2. Redistributions in binary form must reproduce the above copyright- * notice, this list of conditions and the following disclaimer in- * the documentation and/or other materials provided with the- * distribution.- *- * 3. The end-user documentation included with the redistribution,- * if any, must include the following acknowledgment:- * "This product includes software developed by the- * Apache Software Foundation (http://www.apache.org/)."- * Alternately, this acknowledgment may appear in the software itself,- * if and wherever such third-party acknowledgments normally appear.- *- * 4. The names "Apache" and "Apache Software Foundation" and- * "Apache Lucene" must not be used to endorse or promote products- * derived from this software without prior written permission. For- * written permission, please contact [email protected].+/**+ * Copyright 2004-2005 The Apache Software Foundation*- * 5. Products derived from this software may not be called "Apache",- * "Apache Lucene", nor may "Apache" appear in their name, without- * prior written permission of 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*- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF- * SUCH DAMAGE.- * ====================================================================+ * http://www.apache.org/licenses/LICENSE-2.0*- * This software consists of voluntary contributions made by many- * individuals on behalf of the Apache Software Foundation. For more- * information on the Apache Software Foundation, please see- * <http://www.apache.org/>.+ * 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;diff --git a/contrib/analyzers/src/java/org/apache/lucene/analysis/br/BrazilianStemFilter.java b/contrib/analyzers/src/java/org/apache/lucene/analysis/br/BrazilianStemFilter.javaindex e6aac340a42..6c4acc0fa6f 100644--- a/contrib/analyzers/src/java/org/apache/lucene/analysis/br/BrazilianStemFilter.java+++ b/contrib/analyzers/src/java/org/apache/lucene/analysis/br/BrazilianStemFilter.java@@ -1,57 +1,19 @@package org.apache.lucene.analysis.br;-/* ====================================================================- * The Apache Software License, Version 1.1- *- * Copyright (c) 2004 The Apache Software Foundation. All rights- * reserved.- *- * Redistribution and use in source and binary forms, with or without- * modification, are permitted provided that the following conditions- * are met:- *- * 1. Redistributions of source code must retain the above copyright- * notice, this list of conditions and the following disclaimer.- *- * 2. Redistributions in binary form must reproduce the above copyright- * notice, this list of conditions and the following disclaimer in- * the documentation and/or other materials provided with the- * distribution.- *- * 3. The end-user documentation included with the redistribution,- * if any, must include the following acknowledgment:- * "This product includes software developed by the- * Apache Software Foundation (http://www.apache.org/)."- * Alternately, this acknowledgment may appear in the software itself,- * if and wherever such third-party acknowledgments normally appear.- *- * 4. The names "Apache" and "Apache Software Foundation" and- * "Apache Lucene" must not be used to endorse or promote products- * derived from this software without prior written permission. For- * written permission, please contact [email protected].+/**+ * Copyright 2004-2005 The Apache Software Foundation*- * 5. Products derived from this software may not be called "Apache",- * "Apache Lucene", nor may "Apache" appear in their name, without- * prior written permission of 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*- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF- * SUCH DAMAGE.- * ====================================================================+ * http://www.apache.org/licenses/LICENSE-2.0*- * This software consists of voluntary contributions made by many- * individuals on behalf of the Apache Software Foundation. For more- * information on the Apache Software Foundation, please see- * <http://www.apache.org/>.+ * 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.Token;diff --git a/contrib/analyzers/src/java/org/apache/lucene/analysis/br/BrazilianStemmer.java b/contrib/analyzers/src/java/org/apache/lucene/analysis/br/BrazilianStemmer.javaindex c2f533577a1..5af0db62fb8 100644--- a/contrib/analyzers/src/java/org/apache/lucene/analysis/br/BrazilianStemmer.java+++ b/contrib/analyzers/src/java/org/apache/lucene/analysis/br/BrazilianStemmer.java@@ -1,57 +1,19 @@package org.apache.lucene.analysis.br;-/* ====================================================================- * The Apache Software License, Version 1.1- *- * Copyright (c) 2004 The Apache Software Foundation. All rights- * reserved.- *- * Redistribution and use in source and binary forms, with or without- * modification, are permitted provided that the following conditions- * are met:- *- * 1. Redistributions of source code must retain the above copyright- * notice, this list of conditions and the following disclaimer.- *- * 2. Redistributions in binary form must reproduce the above copyright- * notice, this list of conditions and the following disclaimer in- * the documentation and/or other materials provided with the- * distribution.- *- * 3. The end-user documentation included with the redistribution,- * if any, must include the following acknowledgment:- * "This product includes software developed by the- * Apache Software Foundation (http://www.apache.org/)."- * Alternately, this acknowledgment may appear in the software itself,- * if and wherever such third-party acknowledgments normally appear.- *- * 4. The names "Apache" and "Apache Software Foundation" and- * "Apache Lucene" must not be used to endorse or promote products- * derived from this software without prior written permission. For- * written permission, please contact [email protected].+/**+ * Copyright 2004-2005 The Apache Software Foundation*- * 5. Products derived from this software may not be called "Apache",- * "Apache Lucene", nor may "Apache" appear in their name, without- * prior written permission of 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*- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF- * SUCH DAMAGE.- * ====================================================================+ * http://www.apache.org/licenses/LICENSE-2.0*- * This software consists of voluntary contributions made by many- * individuals on behalf of the Apache Software Foundation. For more- * information on the Apache Software Foundation, please see- * <http://www.apache.org/>.+ * 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.*//**@@ -61,7 +23,6 @@ package org.apache.lucene.analysis.br;** @author Gerhard Schwarz*/-public class BrazilianStemmer {/**diff --git a/contrib/analyzers/src/java/org/apache/lucene/analysis/cjk/CJKAnalyzer.java b/contrib/analyzers/src/java/org/apache/lucene/analysis/cjk/CJKAnalyzer.javaindex dfaf9030d64..8f15983d302 100644--- a/contrib/analyzers/src/java/org/apache/lucene/analysis/cjk/CJKAnalyzer.java+++ b/contrib/analyzers/src/java/org/apache/lucene/analysis/cjk/CJKAnalyzer.java@@ -1,59 +1,19 @@package org.apache.lucene.analysis.cjk;-/* ====================================================================- * The Apache Software License, Version 1.1- *- * Copyright (c) 2004 The Apache Software Foundation. All rights- * reserved.- *- * Redistribution and use in source and binary forms, with or without- * modification, are permitted provided that the following conditions- * are met:- *- * 1. Redistributions of source code must retain the above copyright- * notice, this list of conditions and the following disclaimer.- *- * 2. Redistributions in binary form must reproduce the above copyright- * notice, this list of conditions and the following disclaimer in- * the documentation and/or other materials provided with the- * distribution.- *- * 3. The end-user documentation included with the redistribution,- * if any, must include the following acknowledgment:- * "This product includes software developed by the- * Apache Software Foundation (http://www.apache.org/)."- * Alternately, this acknowledgment may appear in the software itself,- * if and wherever such third-party acknowledgments normally appear.- *- * 4. The names "Apache" and "Apache Software Foundation" and- * "Apache Lucene" must not be used to endorse or promote products- * derived from this software without prior written permission. For- * written permission, please contact [email protected].- *- * 5. Products derived from this software may not be called "Apache",- * "Apache Lucene", nor may "Apache" appear in their name, without- * prior written permission of the Apache Software Foundation.+/**+ * Copyright 2004-2005 The Apache Software Foundation*- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF- * SUCH DAMAGE.- * ====================================================================+ * 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*- * This software consists of voluntary contributions made by many- * individuals on behalf of the Apache Software Foundation. For more- * information on the Apache Software Foundation, please see- * <http://www.apache.org/>.+ * http://www.apache.org/licenses/LICENSE-2.0*- * $Id$+ * 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;diff --git a/contrib/analyzers/src/java/org/apache/lucene/analysis/cjk/CJKTokenizer.java b/contrib/analyzers/src/java/org/apache/lucene/analysis/cjk/CJKTokenizer.javaindex e375bfd22a0..6365075940e 100644--- a/contrib/analyzers/src/java/org/apache/lucene/analysis/cjk/CJKTokenizer.java+++ b/contrib/analyzers/src/java/org/apache/lucene/analysis/cjk/CJKTokenizer.java@@ -1,57 +1,19 @@package org.apache.lucene.analysis.cjk;-/* ====================================================================- * The Apache Software License, Version 1.1- *- * Copyright (c) 2004 The Apache Software Foundation. All rights- * reserved.- *- * Redistribution and use in source and binary forms, with or without- * modification, are permitted provided that the following conditions- * are met:- *- * 1. Redistributions of source code must retain the above copyright- * notice, this list of conditions and the following disclaimer.- *- * 2. Redistributions in binary form must reproduce the above copyright- * notice, this list of conditions and the following disclaimer in- * the documentation and/or other materials provided with the- * distribution.- *- * 3. The end-user documentation included with the redistribution,- * if any, must include the following acknowledgment:- * "This product includes software developed by the- * Apache Software Foundation (http://www.apache.org/)."- * Alternately, this acknowledgment may appear in the software itself,- * if and wherever such third-party acknowledgments normally appear.- *- * 4. The names "Apache" and "Apache Software Foundation" and- * "Apache Lucene" must not be used to endorse or promote products- * derived from this software without prior written permission. For- * written permission, please contact [email protected].+/**+ * Copyright 2004-2005 The Apache Software Foundation*- * 5. Products derived from this software may not be called "Apache",- * "Apache Lucene", nor may "Apache" appear in their name, without- * prior written permission of 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*- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF- * SUCH DAMAGE.- * ====================================================================+ * http://www.apache.org/licenses/LICENSE-2.0*- * This software consists of voluntary contributions made by many- * individuals on behalf of the Apache Software Foundation. For more- * information on the Apache Software Foundation, please see- * <http://www.apache.org/>.+ * 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.Token;diff --git a/contrib/analyzers/src/java/org/apache/lucene/analysis/cn/ChineseAnalyzer.java b/contrib/analyzers/src/java/org/apache/lucene/analysis/cn/ChineseAnalyzer.javaindex 0ae2b33219b..40b3a3b05e0 100644--- a/contrib/analyzers/src/java/org/apache/lucene/analysis/cn/ChineseAnalyzer.java+++ b/contrib/analyzers/src/java/org/apache/lucene/analysis/cn/ChineseAnalyzer.java@@ -1,57 +1,19 @@package org.apache.lucene.analysis.cn;-/* ====================================================================- * The Apache Software License, Version 1.1- *- * Copyright (c) 2004 The Apache Software Foundation. All rights- * reserved.- *- * Redistribution and use in source and binary forms, with or without- * modification, are permitted provided that the following conditions- * are met:- *- * 1. Redistributions of source code must retain the above copyright- * notice, this list of conditions and the following disclaimer.- *- * 2. Redistributions in binary form must reproduce the above copyright- * notice, this list of conditions and the following disclaimer in- * the documentation and/or other materials provided with the- * distribution.- *- * 3. The end-user documentation included with the redistribution,- * if any, must include the following acknowledgment:- * "This product includes software developed by the- * Apache Software Foundation (http://www.apache.org/)."- * Alternately, this acknowledgment may appear in the software itself,- * if and wherever such third-party acknowledgments normally appear.- *- * 4. The names "Apache" and "Apache Software Foundation" and- * "Apache Lucene" must not be used to endorse or promote products- * derived from this software without prior written permission. For- * written permission, please contact [email protected].+/**+ * Copyright 2004-2005 The Apache Software Foundation*- * 5. Products derived from this software may not be called "Apache",- * "Apache Lucene", nor may "Apache" appear in their name, without- * prior written permission of 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*- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF- * SUCH DAMAGE.- * ====================================================================+ * http://www.apache.org/licenses/LICENSE-2.0*- * This software consists of voluntary contributions made by many- * individuals on behalf of the Apache Software Foundation. For more- * information on the Apache Software Foundation, please see- * <http://www.apache.org/>.+ * 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;diff --git a/contrib/analyzers/src/java/org/apache/lucene/analysis/cn/ChineseTokenizer.java b/contrib/analyzers/src/java/org/apache/lucene/analysis/cn/ChineseTokenizer.javaindex 2bd757cadef..c23ec707e46 100644--- a/contrib/analyzers/src/java/org/apache/lucene/analysis/cn/ChineseTokenizer.java+++ b/contrib/analyzers/src/java/org/apache/lucene/analysis/cn/ChineseTokenizer.java@@ -1,59 +1,22 @@package org.apache.lucene.analysis.cn;-/* ====================================================================- * The Apache Software License, Version 1.1- *- * Copyright (c) 2004 The Apache Software Foundation. All rights- * reserved.- *- * Redistribution and use in source and binary forms, with or without- * modification, are permitted provided that the following conditions- * are met:- *- * 1. Redistributions of source code must retain the above copyright- * notice, this list of conditions and the following disclaimer.- *- * 2. Redistributions in binary form must reproduce the above copyright- * notice, this list of conditions and the following disclaimer in- * the documentation and/or other materials provided with the- * distribution.- *- * 3. The end-user documentation included with the redistribution,- * if any, must include the following acknowledgment:- * "This product includes software developed by the- * Apache Software Foundation (http://www.apache.org/)."- * Alternately, this acknowledgment may appear in the software itself,- * if and wherever such third-party acknowledgments normally appear.- *- * 4. The names "Apache" and "Apache Software Foundation" and- * "Apache Lucene" must not be used to endorse or promote products- * derived from this software without prior written permission. For- * written permission, please contact [email protected].+/**+ * Copyright 2004-2005 The Apache Software Foundation*- * 5. Products derived from this software may not be called "Apache",- * "Apache Lucene", nor may "Apache" appear in their name, without- * prior written permission of 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*- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF- * SUCH DAMAGE.- * ====================================================================+ * http://www.apache.org/licenses/LICENSE-2.0*- * This software consists of voluntary contributions made by many- * individuals on behalf of the Apache Software Foundation. For more- * information on the Apache Software Foundation, please see- * <http://www.apache.org/>.+ * 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 org.apache.lucene.analysis.*;diff --git a/contrib/analyzers/src/java/org/apache/lucene/analysis/cz/CzechAnalyzer.java b/contrib/analyzers/src/java/org/apache/lucene/analysis/cz/CzechAnalyzer.javaindex fd72f39c8af..95e7ea368d8 100644--- a/contrib/analyzers/src/java/org/apache/lucene/analysis/cz/CzechAnalyzer.java+++ b/contrib/analyzers/src/java/org/apache/lucene/analysis/cz/CzechAnalyzer.java@@ -1,57 +1,19 @@package org.apache.lucene.analysis.cz;-/* ====================================================================- * The Apache Software License, Version 1.1- *- * Copyright (c) 2004 The Apache Software Foundation. All rights- * reserved.- *- * Redistribution and use in source and binary forms, with or without- * modification, are permitted provided that the following conditions- * are met:- *- * 1. Redistributions of source code must retain the above copyright- * notice, this list of conditions and the following disclaimer.- *- * 2. Redistributions in binary form must reproduce the above copyright- * notice, this list of conditions and the following disclaimer in- * the documentation and/or other materials provided with the- * distribution.- *- * 3. The end-user documentation included with the redistribution,- * if any, must include the following acknowledgment:- * "This product includes software developed by the- * Apache Software Foundation (http://www.apache.org/)."- * Alternately, this acknowledgment may appear in the software itself,- * if and wherever such third-party acknowledgments normally appear.- *- * 4. The names "Apache" and "Apache Software Foundation" and- * "Apache Lucene" must not be used to endorse or promote products- * derived from this software without prior written permission. For- * written permission, please contact [email protected].+/**+ * Copyright 2004-2005 The Apache Software Foundation*- * 5. Products derived from this software may not be called "Apache",- * "Apache Lucene", nor may "Apache" appear in their name, without- * prior written permission of 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*- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF- * SUCH DAMAGE.- * ====================================================================+ * http://www.apache.org/licenses/LICENSE-2.0*- * This software consists of voluntary contributions made by many- * individuals on behalf of the Apache Software Foundation. For more- * information on the Apache Software Foundation, please see- * <http://www.apache.org/>.+ * 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;diff --git a/contrib/analyzers/src/java/org/apache/lucene/analysis/fr/FrenchAnalyzer.java b/contrib/analyzers/src/java/org/apache/lucene/analysis/fr/FrenchAnalyzer.javaindex d2982f855d8..70b08cad5f0 100644--- a/contrib/analyzers/src/java/org/apache/lucene/analysis/fr/FrenchAnalyzer.java+++ b/contrib/analyzers/src/java/org/apache/lucene/analysis/fr/FrenchAnalyzer.java@@ -1,57 +1,19 @@package org.apache.lucene.analysis.fr;-/* ====================================================================- * The Apache Software License, Version 1.1- *- * Copyright (c) 2004 The Apache Software Foundation. All rights- * reserved.- *- * Redistribution and use in source and binary forms, with or without- * modification, are permitted provided that the following conditions- * are met:- *- * 1. Redistributions of source code must retain the above copyright- * notice, this list of conditions and the following disclaimer.- *- * 2. Redistributions in binary form must reproduce the above copyright- * notice, this list of conditions and the following disclaimer in- * the documentation and/or other materials provided with the- * distribution.- *- * 3. The end-user documentation included with the redistribution,- * if any, must include the following acknowledgment:- * "This product includes software developed by the- * Apache Software Foundation (http://www.apache.org/)."- * Alternately, this acknowledgment may appear in the software itself,- * if and wherever such third-party acknowledgments normally appear.- *- * 4. The names "Apache" and "Apache Software Foundation" and- * "Apache Lucene" must not be used to endorse or promote products- * derived from this software without prior written permission. For- * written permission, please contact [email protected].+/**+ * Copyright 2004-2005 The Apache Software Foundation*- * 5. Products derived from this software may not be called "Apache",- * "Apache Lucene", nor may "Apache" appear in their name, without- * prior written permission of 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*- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF- * SUCH DAMAGE.- * ====================================================================+ * http://www.apache.org/licenses/LICENSE-2.0*- * This software consists of voluntary contributions made by many- * individuals on behalf of the Apache Software Foundation. For more- * information on the Apache Software Foundation, please see- * <http://www.apache.org/>.+ * 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;diff --git a/contrib/analyzers/src/java/org/apache/lucene/analysis/fr/FrenchStemFilter.java b/contrib/analyzers/src/java/org/apache/lucene/analysis/fr/FrenchStemFilter.javaindex b3403b029f7..7cc06f4167c 100644--- a/contrib/analyzers/src/java/org/apache/lucene/analysis/fr/FrenchStemFilter.java+++ b/contrib/analyzers/src/java/org/apache/lucene/analysis/fr/FrenchStemFilter.java@@ -1,57 +1,19 @@package org.apache.lucene.analysis.fr;-/* ====================================================================- * The Apache Software License, Version 1.1- *- * Copyright (c) 2004 The Apache Software Foundation. All rights- * reserved.- *- * Redistribution and use in source and binary forms, with or without- * modification, are permitted provided that the following conditions- * are met:- *- * 1. Redistributions of source code must retain the above copyright- * notice, this list of conditions and the following disclaimer.- *- * 2. Redistributions in binary form must reproduce the above copyright- * notice, this list of conditions and the following disclaimer in- * the documentation and/or other materials provided with the- * distribution.- *- * 3. The end-user documentation included with the redistribution,- * if any, must include the following acknowledgment:- * "This product includes software developed by the- * Apache Software Foundation (http://www.apache.org/)."- * Alternately, this acknowledgment may appear in the software itself,- * if and wherever such third-party acknowledgments normally appear.- *- * 4. The names "Apache" and "Apache Software Foundation" and- * "Apache Lucene" must not be used to endorse or promote products- * derived from this software without prior written permission. For- * written permission, please contact [email protected].+/**+ * Copyright 2004-2005 The Apache Software Foundation*- * 5. Products derived from this software may not be called "Apache",- * "Apache Lucene", nor may "Apache" appear in their name, without- * prior written permission of 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*- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF- * SUCH DAMAGE.- * ====================================================================+ * http://www.apache.org/licenses/LICENSE-2.0*- * This software consists of voluntary contributions made by many- * individuals on behalf of the Apache Software Foundation. For more- * information on the Apache Software Foundation, please see- * <http://www.apache.org/>.+ * 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.Token;diff --git a/contrib/analyzers/src/java/org/apache/lucene/analysis/fr/FrenchStemmer.java b/contrib/analyzers/src/java/org/apache/lucene/analysis/fr/FrenchStemmer.javaindex 5c6bea813ed..f9b109b9c72 100644--- a/contrib/analyzers/src/java/org/apache/lucene/analysis/fr/FrenchStemmer.java+++ b/contrib/analyzers/src/java/org/apache/lucene/analysis/fr/FrenchStemmer.java@@ -1,57 +1,19 @@package org.apache.lucene.analysis.fr;-/* ====================================================================- * The Apache Software License, Version 1.1- *- * Copyright (c) 2001 The Apache Software Foundation. All rights- * reserved.- *- * Redistribution and use in source and binary forms, with or without- * modification, are permitted provided that the following conditions- * are met:- *- * 1. Redistributions of source code must retain the above copyright- * notice, this list of conditions and the following disclaimer.- *- * 2. Redistributions in binary form must reproduce the above copyright- * notice, this list of conditions and the following disclaimer in- * the documentation and/or other materials provided with the- * distribution.- *- * 3. The end-user documentation included with the redistribution,- * if any, must include the following acknowledgment:- * "This product includes software developed by the- * Apache Software Foundation (http://www.apache.org/)."- * Alternately, this acknowledgment may appear in the software itself,- * if and wherever such third-party acknowledgments normally appear.- *- * 4. The names "Apache" and "Apache Software Foundation" and- * "Apache Lucene" must not be used to endorse or promote products- * derived from this software without prior written permission. For- * written permission, please contact [email protected].+/**+ * Copyright 2001-2005 The Apache Software Foundation*- * 5. Products derived from this software may not be called "Apache",- * "Apache Lucene", nor may "Apache" appear in their name, without- * prior written permission of 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*- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF- * SUCH DAMAGE.- * ====================================================================+ * http://www.apache.org/licenses/LICENSE-2.0*- * This software consists of voluntary contributions made by many- * individuals on behalf of the Apache Software Foundation. For more- * information on the Apache Software Foundation, please see- * <http://www.apache.org/>.+ * 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.*//**