Return-Path: X-Original-To: apmail-lucene-lucene-net-commits-archive@www.apache.org Delivered-To: apmail-lucene-lucene-net-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D40229AE2 for ; Tue, 13 Mar 2012 20:33:26 +0000 (UTC) Received: (qmail 49673 invoked by uid 500); 13 Mar 2012 20:33:26 -0000 Delivered-To: apmail-lucene-lucene-net-commits-archive@lucene.apache.org Received: (qmail 49643 invoked by uid 500); 13 Mar 2012 20:33:26 -0000 Mailing-List: contact lucene-net-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucene-net-dev@lucene.apache.org Delivered-To: mailing list lucene-net-commits@lucene.apache.org Received: (qmail 49632 invoked by uid 99); 13 Mar 2012 20:33:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Mar 2012 20:33:26 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Mar 2012 20:33:21 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id D10482388C10; Tue, 13 Mar 2012 20:33:00 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r1300340 [3/6] - in /incubator/lucene.net/trunk: branding/logo/ build/vs2010/test/ src/contrib/Analyzers/ src/contrib/Analyzers/Compound/ src/contrib/Analyzers/El/ src/contrib/Analyzers/Fa/ src/contrib/Analyzers/Miscellaneous/ src/contrib/A... Date: Tue, 13 Mar 2012 20:32:49 -0000 To: lucene-net-commits@lucene.apache.org From: ccurrens@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120313203300.D10482388C10@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Modified: incubator/lucene.net/trunk/src/core/Search/WildcardQuery.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Search/WildcardQuery.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Search/WildcardQuery.cs (original) +++ incubator/lucene.net/trunk/src/core/Search/WildcardQuery.cs Tue Mar 13 20:32:43 2012 @@ -48,9 +48,9 @@ namespace Lucene.Net.Search public WildcardQuery(Term term) { this.term = term; - string text = term.Text(); - this.termContainsWildcard = (term.Text().IndexOf('*') != -1) - || (term.Text().IndexOf('?') != -1); + string text = term.Text; + this.termContainsWildcard = (term.Text.IndexOf('*') != -1) + || (term.Text.IndexOf('?') != -1); this.termIsPrefix = termContainsWildcard && (text.IndexOf('?') == -1) && (text.IndexOf('*') == text.Length - 1); @@ -94,12 +94,12 @@ namespace Lucene.Net.Search public override System.String ToString(System.String field) { System.Text.StringBuilder buffer = new System.Text.StringBuilder(); - if (!term.Field().Equals(field)) + if (!term.Field.Equals(field)) { - buffer.Append(term.Field()); + buffer.Append(term.Field); buffer.Append(":"); } - buffer.Append(term.Text()); + buffer.Append(term.Text); buffer.Append(ToStringUtils.Boost(Boost)); return buffer.ToString(); } Modified: incubator/lucene.net/trunk/src/core/Search/WildcardTermEnum.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Search/WildcardTermEnum.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Search/WildcardTermEnum.cs (original) +++ incubator/lucene.net/trunk/src/core/Search/WildcardTermEnum.cs Tue Mar 13 20:32:43 2012 @@ -46,8 +46,8 @@ namespace Lucene.Net.Search public WildcardTermEnum(IndexReader reader, Term term):base() { searchTerm = term; - field = searchTerm.Field(); - System.String searchTermText = searchTerm.Text(); + field = searchTerm.Field; + System.String searchTermText = searchTerm.Text; int sidx = searchTermText.IndexOf((System.Char) WILDCARD_STRING); int cidx = searchTermText.IndexOf((System.Char) WILDCARD_CHAR); @@ -60,18 +60,18 @@ namespace Lucene.Net.Search { idx = System.Math.Min(idx, cidx); } - pre = idx != - 1?searchTerm.Text().Substring(0, (idx) - (0)):""; + pre = idx != - 1?searchTerm.Text.Substring(0, (idx) - (0)):""; preLen = pre.Length; text = searchTermText.Substring(preLen); - SetEnum(reader.Terms(new Term(searchTerm.Field(), pre))); + SetEnum(reader.Terms(new Term(searchTerm.Field, pre))); } /*protected internal*/ protected internal override bool TermCompare(Term term) { - if ((System.Object) field == (System.Object) term.Field()) + if ((System.Object) field == (System.Object) term.Field) { - System.String searchText = term.Text(); + System.String searchText = term.Text; if (searchText.StartsWith(pre)) { return WildcardEquals(text, 0, searchText, preLen); Modified: incubator/lucene.net/trunk/src/core/Support/AppSettings.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Support/AppSettings.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Support/AppSettings.cs (original) +++ incubator/lucene.net/trunk/src/core/Support/AppSettings.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Configuration; namespace Lucene.Net.Support @@ -135,4 +156,4 @@ namespace Lucene.Net.Support return retValue; } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/src/core/Support/AttributeImplItem.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Support/AttributeImplItem.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Support/AttributeImplItem.cs (original) +++ incubator/lucene.net/trunk/src/core/Support/AttributeImplItem.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; namespace Lucene.Net.Support { @@ -17,4 +38,4 @@ namespace Lucene.Net.Support internal Type Key; internal Util.AttributeImpl Value; } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/src/core/Support/BitSetSupport.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Support/BitSetSupport.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Support/BitSetSupport.cs (original) +++ incubator/lucene.net/trunk/src/core/Support/BitSetSupport.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -namespace Lucene.Net.Support +/* + * + * 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. + * +*/ + +namespace Lucene.Net.Support { /// /// This class provides supporting methods of java.util.BitSet @@ -64,4 +85,4 @@ return count; } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/src/core/Support/BuildType.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Support/BuildType.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Support/BuildType.cs (original) +++ incubator/lucene.net/trunk/src/core/Support/BuildType.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -namespace Lucene.Net.Support +/* + * + * 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. + * +*/ + +namespace Lucene.Net.Support { public class BuildType { @@ -8,4 +29,4 @@ public static bool Debug = false; #endif } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/src/core/Support/CRC32.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Support/CRC32.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Support/CRC32.cs (original) +++ incubator/lucene.net/trunk/src/core/Support/CRC32.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; namespace Lucene.Net.Support { @@ -64,4 +85,4 @@ namespace Lucene.Net.Support Update(buf, 0, buf.Length); } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/src/core/Support/Character.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Support/Character.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Support/Character.cs (original) +++ incubator/lucene.net/trunk/src/core/Support/Character.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -namespace Lucene.Net.Support +/* + * + * 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. + * +*/ + +namespace Lucene.Net.Support { /// /// Mimics Java's Character class. @@ -57,4 +78,4 @@ return (char)((int)charA + digit - 10); } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/src/core/Support/CloseableThreadLocalProfiler.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Support/CloseableThreadLocalProfiler.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Support/CloseableThreadLocalProfiler.cs (original) +++ incubator/lucene.net/trunk/src/core/Support/CloseableThreadLocalProfiler.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; namespace Lucene.Net.Support { @@ -21,4 +42,4 @@ namespace Lucene.Net.Support } } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/src/core/Support/CollectionsHelper.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Support/CollectionsHelper.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Support/CollectionsHelper.cs (original) +++ incubator/lucene.net/trunk/src/core/Support/CollectionsHelper.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections; namespace Lucene.Net.Support @@ -302,4 +323,4 @@ namespace Lucene.Net.Support return result; } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/src/core/Support/Compare.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Support/Compare.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Support/Compare.cs (original) +++ incubator/lucene.net/trunk/src/core/Support/Compare.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -namespace Lucene.Net.Support +/* + * + * 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. + * +*/ + +namespace Lucene.Net.Support { /// /// Summary description for TestSupportClass. @@ -25,4 +46,4 @@ return false; } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/src/core/Support/Cryptography.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Support/Cryptography.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Support/Cryptography.cs (original) +++ incubator/lucene.net/trunk/src/core/Support/Cryptography.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System.Security.Cryptography; +/* + * + * 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. + * +*/ + +using System.Security.Cryptography; namespace Lucene.Net.Support { @@ -17,8 +38,8 @@ namespace Lucene.Net.Support //SHA256 SHA384 SHA512 etc. return SHA1.Create(); } - return MD5.Create(); - } + return MD5.Create(); } } +} } \ No newline at end of file Modified: incubator/lucene.net/trunk/src/core/Support/Deflater.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Support/Deflater.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Support/Deflater.cs (original) +++ incubator/lucene.net/trunk/src/core/Support/Deflater.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; namespace Lucene.Net.Support { @@ -73,4 +94,4 @@ namespace Lucene.Net.Support return deflateMethod(output); } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/src/core/Support/Double.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Support/Double.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Support/Double.cs (original) +++ incubator/lucene.net/trunk/src/core/Support/Double.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Globalization; namespace Lucene.Net.Support @@ -20,4 +41,4 @@ namespace Lucene.Net.Support } } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/src/core/Support/EquatableList.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Support/EquatableList.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Support/EquatableList.cs (original) +++ incubator/lucene.net/trunk/src/core/Support/EquatableList.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections; using System.Collections.Generic; @@ -315,4 +336,4 @@ namespace Lucene.Net.Support #endregion } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/src/core/Support/FileSupport.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Support/FileSupport.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Support/FileSupport.cs (original) +++ incubator/lucene.net/trunk/src/core/Support/FileSupport.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.IO; namespace Lucene.Net.Support @@ -97,4 +118,4 @@ namespace Lucene.Net.Support //[System.Runtime.InteropServices.DllImport("kernel32.dll")] //extern static bool FlushFileBuffers(IntPtr hFile); } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/src/core/Support/GeneralKeyedCollection.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Support/GeneralKeyedCollection.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Support/GeneralKeyedCollection.cs (original) +++ incubator/lucene.net/trunk/src/core/Support/GeneralKeyedCollection.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Diagnostics; namespace Lucene.Net.Support @@ -72,4 +93,4 @@ namespace Lucene.Net.Support return base.Items; } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/src/core/Support/HashMap.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Support/HashMap.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Support/HashMap.cs (original) +++ incubator/lucene.net/trunk/src/core/Support/HashMap.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections; using System.Collections.Generic; @@ -421,4 +442,4 @@ namespace Lucene.Net.Support } #endregion } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/src/core/Support/IThreadRunnable.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Support/IThreadRunnable.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Support/IThreadRunnable.cs (original) +++ incubator/lucene.net/trunk/src/core/Support/IThreadRunnable.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -namespace Lucene.Net.Support +/* + * + * 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. + * +*/ + +namespace Lucene.Net.Support { /// /// This interface should be implemented by any class whose instances are intended @@ -12,4 +33,4 @@ /// void Run(); } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/src/core/Support/Inflater.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Support/Inflater.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Support/Inflater.cs (original) +++ incubator/lucene.net/trunk/src/core/Support/Inflater.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; namespace Lucene.Net.Support { @@ -47,4 +68,4 @@ namespace Lucene.Net.Support return inflateMethod(buffer); } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/src/core/Support/Number.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Support/Number.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Support/Number.cs (original) +++ incubator/lucene.net/trunk/src/core/Support/Number.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Globalization; namespace Lucene.Net.Support @@ -228,4 +249,4 @@ namespace Lucene.Net.Support return number; } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/src/core/Support/OS.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Support/OS.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Support/OS.cs (original) +++ incubator/lucene.net/trunk/src/core/Support/OS.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; namespace Lucene.Net.Support { @@ -38,4 +59,4 @@ namespace Lucene.Net.Support get { return isWindows; } } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/src/core/Support/SharpZipLib.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Support/SharpZipLib.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Support/SharpZipLib.cs (original) +++ incubator/lucene.net/trunk/src/core/Support/SharpZipLib.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System.Reflection; +/* + * + * 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. + * +*/ + +using System.Reflection; namespace Lucene.Net.Support { @@ -27,4 +48,4 @@ namespace Lucene.Net.Support return new Inflater(asm.CreateInstance("ICSharpCode.SharpZipLib.Zip.Compression.Inflater")); } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/src/core/Support/Single.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Support/Single.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Support/Single.cs (original) +++ incubator/lucene.net/trunk/src/core/Support/Single.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Globalization; namespace Lucene.Net.Support @@ -135,4 +156,4 @@ namespace Lucene.Net.Support return BitConverter.ToSingle(BitConverter.GetBytes(value), 0); } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/src/core/Support/TextSupport.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Support/TextSupport.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Support/TextSupport.cs (original) +++ incubator/lucene.net/trunk/src/core/Support/TextSupport.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -namespace Lucene.Net.Support +/* + * + * 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. + * +*/ + +namespace Lucene.Net.Support { public class TextSupport { @@ -25,4 +46,4 @@ } } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/src/core/Support/ThreadClass.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Support/ThreadClass.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Support/ThreadClass.cs (original) +++ incubator/lucene.net/trunk/src/core/Support/ThreadClass.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Threading; namespace Lucene.Net.Support @@ -291,4 +312,4 @@ namespace Lucene.Net.Support return this.threadField.GetHashCode(); } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/src/core/Support/WeakDictionary.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Support/WeakDictionary.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Support/WeakDictionary.cs (original) +++ incubator/lucene.net/trunk/src/core/Support/WeakDictionary.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections; using System.Collections.Generic; using System.Linq; @@ -270,4 +291,4 @@ namespace Lucene.Net.Support } } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/src/core/Support/WeakHashTable.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Support/WeakHashTable.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Support/WeakHashTable.cs (original) +++ incubator/lucene.net/trunk/src/core/Support/WeakHashTable.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections; namespace Lucene.Net.Support @@ -254,4 +275,4 @@ namespace Lucene.Net.Support return GetEnumerator(); } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/src/core/Support/WeakReference.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Support/WeakReference.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Support/WeakReference.cs (original) +++ incubator/lucene.net/trunk/src/core/Support/WeakReference.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; Modified: incubator/lucene.net/trunk/src/core/Util/IdentityDictionary.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Util/IdentityDictionary.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/core/Util/IdentityDictionary.cs (original) +++ incubator/lucene.net/trunk/src/core/Util/IdentityDictionary.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; Modified: incubator/lucene.net/trunk/test/contrib/Analyzers/Br/TestBrazilianStemmer.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Analyzers/Br/TestBrazilianStemmer.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/test/contrib/Analyzers/Br/TestBrazilianStemmer.cs (original) +++ incubator/lucene.net/trunk/test/contrib/Analyzers/Br/TestBrazilianStemmer.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections.Generic; using System.Linq; using System.Text; Modified: incubator/lucene.net/trunk/test/contrib/Analyzers/Cjk/TestCJKTokenizer.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Analyzers/Cjk/TestCJKTokenizer.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/test/contrib/Analyzers/Cjk/TestCJKTokenizer.cs (original) +++ incubator/lucene.net/trunk/test/contrib/Analyzers/Cjk/TestCJKTokenizer.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -302,4 +323,4 @@ namespace Lucene.Net.Analyzers.Cjk }); } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/test/contrib/Analyzers/Cn/TestChineseTokenizer.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Analyzers/Cn/TestChineseTokenizer.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/test/contrib/Analyzers/Cn/TestChineseTokenizer.cs (original) +++ incubator/lucene.net/trunk/test/contrib/Analyzers/Cn/TestChineseTokenizer.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections.Generic; using System.IO; using System.Linq; Modified: incubator/lucene.net/trunk/test/contrib/Analyzers/Compound/TestCompoundWordTokenFilter.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Analyzers/Compound/TestCompoundWordTokenFilter.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/test/contrib/Analyzers/Compound/TestCompoundWordTokenFilter.cs (original) +++ incubator/lucene.net/trunk/test/contrib/Analyzers/Compound/TestCompoundWordTokenFilter.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections.Generic; using System.Linq; using System.Text; Modified: incubator/lucene.net/trunk/test/contrib/Analyzers/Contrib.Analyzers.Test.csproj URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Analyzers/Contrib.Analyzers.Test.csproj?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/test/contrib/Analyzers/Contrib.Analyzers.Test.csproj (original) +++ incubator/lucene.net/trunk/test/contrib/Analyzers/Contrib.Analyzers.Test.csproj Tue Mar 13 20:32:43 2012 @@ -70,6 +70,7 @@ prompt 4 618 + false true @@ -173,7 +174,7 @@ PreserveNewest - + PreserveNewest Modified: incubator/lucene.net/trunk/test/contrib/Analyzers/Cz/TestCzechAnalyzer.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Analyzers/Cz/TestCzechAnalyzer.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/test/contrib/Analyzers/Cz/TestCzechAnalyzer.cs (original) +++ incubator/lucene.net/trunk/test/contrib/Analyzers/Cz/TestCzechAnalyzer.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections.Generic; using System.IO; using System.Linq; Modified: incubator/lucene.net/trunk/test/contrib/Analyzers/De/TestGermanStemFilter.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Analyzers/De/TestGermanStemFilter.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/test/contrib/Analyzers/De/TestGermanStemFilter.cs (original) +++ incubator/lucene.net/trunk/test/contrib/Analyzers/De/TestGermanStemFilter.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections.Generic; using System.IO; using System.Linq; Modified: incubator/lucene.net/trunk/test/contrib/Analyzers/El/GreekAnalyzerTest.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Analyzers/El/GreekAnalyzerTest.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/test/contrib/Analyzers/El/GreekAnalyzerTest.cs (original) +++ incubator/lucene.net/trunk/test/contrib/Analyzers/El/GreekAnalyzerTest.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections.Generic; using System.Linq; using System.Text; Modified: incubator/lucene.net/trunk/test/contrib/Analyzers/Fa/TestPersianAnalyzer.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Analyzers/Fa/TestPersianAnalyzer.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/test/contrib/Analyzers/Fa/TestPersianAnalyzer.cs (original) +++ incubator/lucene.net/trunk/test/contrib/Analyzers/Fa/TestPersianAnalyzer.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections.Generic; using System.Linq; using System.Text; Modified: incubator/lucene.net/trunk/test/contrib/Analyzers/Fa/TestPersianNormalizationFilter.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Analyzers/Fa/TestPersianNormalizationFilter.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/test/contrib/Analyzers/Fa/TestPersianNormalizationFilter.cs (original) +++ incubator/lucene.net/trunk/test/contrib/Analyzers/Fa/TestPersianNormalizationFilter.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections.Generic; using System.IO; using System.Linq; Modified: incubator/lucene.net/trunk/test/contrib/Analyzers/Fr/TestElision.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Analyzers/Fr/TestElision.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/test/contrib/Analyzers/Fr/TestElision.cs (original) +++ incubator/lucene.net/trunk/test/contrib/Analyzers/Fr/TestElision.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections.Generic; using System.IO; using System.Linq; @@ -44,4 +65,4 @@ namespace Lucene.Net.Analyzers.Fr return tas; } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/test/contrib/Analyzers/Fr/TestFrenchAnalyzer.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Analyzers/Fr/TestFrenchAnalyzer.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/test/contrib/Analyzers/Fr/TestFrenchAnalyzer.cs (original) +++ incubator/lucene.net/trunk/test/contrib/Analyzers/Fr/TestFrenchAnalyzer.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -144,4 +165,4 @@ namespace Lucene.Net.Analyzers.Fr AssertAnalyzesToReuse(fa, "habitable", new String[] { "habitable" }); } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/test/contrib/Analyzers/Miscellaneous/PatternAnalyzerTest.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Analyzers/Miscellaneous/PatternAnalyzerTest.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/test/contrib/Analyzers/Miscellaneous/PatternAnalyzerTest.cs (original) +++ incubator/lucene.net/trunk/test/contrib/Analyzers/Miscellaneous/PatternAnalyzerTest.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -146,4 +167,4 @@ namespace Lucene.Net.Analyzers.Miscellan AssertTokenStreamContents(ts2, expected); } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/test/contrib/Analyzers/Miscellaneous/TestEmptyTokenStream.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Analyzers/Miscellaneous/TestEmptyTokenStream.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/test/contrib/Analyzers/Miscellaneous/TestEmptyTokenStream.cs (original) +++ incubator/lucene.net/trunk/test/contrib/Analyzers/Miscellaneous/TestEmptyTokenStream.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections.Generic; using System.Linq; using System.Text; Modified: incubator/lucene.net/trunk/test/contrib/Analyzers/Miscellaneous/TestSingleTokenTokenFilter.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Analyzers/Miscellaneous/TestSingleTokenTokenFilter.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/test/contrib/Analyzers/Miscellaneous/TestSingleTokenTokenFilter.cs (original) +++ incubator/lucene.net/trunk/test/contrib/Analyzers/Miscellaneous/TestSingleTokenTokenFilter.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections.Generic; using System.Linq; using System.Text; Modified: incubator/lucene.net/trunk/test/contrib/Analyzers/NGram/TestEdgeNGramTokenFilter.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Analyzers/NGram/TestEdgeNGramTokenFilter.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/test/contrib/Analyzers/NGram/TestEdgeNGramTokenFilter.cs (original) +++ incubator/lucene.net/trunk/test/contrib/Analyzers/NGram/TestEdgeNGramTokenFilter.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections.Generic; using System.IO; using System.Linq; @@ -120,4 +141,4 @@ namespace Lucene.Net.Analyzers.Miscellan AssertTokenStreamContents(filter, new String[] { "a", "ab", "abc" }, new int[] { 0, 0, 0 }, new int[] { 1, 2, 3 }); } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/test/contrib/Analyzers/NGram/TestEdgeNGramTokenizer.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Analyzers/NGram/TestEdgeNGramTokenizer.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/test/contrib/Analyzers/NGram/TestEdgeNGramTokenizer.cs (original) +++ incubator/lucene.net/trunk/test/contrib/Analyzers/NGram/TestEdgeNGramTokenizer.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections.Generic; using System.IO; using System.Linq; @@ -110,4 +131,4 @@ namespace Lucene.Net.Analyzers.Miscellan AssertTokenStreamContents(tokenizer, new String[] { "a", "ab", "abc" }, new int[] { 0, 0, 0 }, new int[] { 1, 2, 3 }, 5 /* abcde */); } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/test/contrib/Analyzers/Nl/TestDutchStemmer.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Analyzers/Nl/TestDutchStemmer.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/test/contrib/Analyzers/Nl/TestDutchStemmer.cs (original) +++ incubator/lucene.net/trunk/test/contrib/Analyzers/Nl/TestDutchStemmer.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections.Generic; using System.IO; using System.Linq; @@ -174,4 +195,4 @@ namespace Lucene.Net.Analyzers.Nl } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/test/contrib/Analyzers/Payloads/DelimitedPayloadTokenFilterTest.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Analyzers/Payloads/DelimitedPayloadTokenFilterTest.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/test/contrib/Analyzers/Payloads/DelimitedPayloadTokenFilterTest.cs (original) +++ incubator/lucene.net/trunk/test/contrib/Analyzers/Payloads/DelimitedPayloadTokenFilterTest.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections.Generic; using System.IO; using System.Linq; @@ -101,10 +122,10 @@ namespace Lucene.Net.Analyzers.Payloads PayloadAttribute payloadAtt = stream.GetAttribute(); Assert.True(stream.IncrementToken()); Assert.AreEqual(expected, termAtt.Term()); - Payload payload = payloadAtt.GetPayload(); + Payload payload = payloadAtt.Payload; if (payload != null) { - Assert.True(payload.Length() == expectPay.Length, payload.Length() + " does not equal: " + expectPay.Length); + Assert.True(payload.Length == expectPay.Length, payload.Length + " does not equal: " + expectPay.Length); for (int i = 0; i < expectPay.Length; i++) { Assert.True(expectPay[i] == payload.ByteAt(i), expectPay[i] + " does not equal: " + payload.ByteAt(i)); @@ -121,10 +142,10 @@ namespace Lucene.Net.Analyzers.Payloads { Assert.True(stream.IncrementToken()); Assert.AreEqual(expected, termAtt.Term()); - Payload payload = payAtt.GetPayload(); + Payload payload = payAtt.Payload; if (payload != null) { - Assert.True(payload.Length() == expectPay.Length, payload.Length() + " does not equal: " + expectPay.Length); + Assert.True(payload.Length == expectPay.Length, payload.Length + " does not equal: " + expectPay.Length); for (int i = 0; i < expectPay.Length; i++) { Assert.True(expectPay[i] == payload.ByteAt(i), expectPay[i] + " does not equal: " + payload.ByteAt(i)); Modified: incubator/lucene.net/trunk/test/contrib/Analyzers/Payloads/NumericPayloadTokenFilterTest.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Analyzers/Payloads/NumericPayloadTokenFilterTest.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/test/contrib/Analyzers/Payloads/NumericPayloadTokenFilterTest.cs (original) +++ incubator/lucene.net/trunk/test/contrib/Analyzers/Payloads/NumericPayloadTokenFilterTest.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections.Generic; using System.IO; using System.Linq; @@ -28,10 +49,10 @@ namespace Lucene.Net.Analyzers.Payloads { seenDogs = true; Assert.True(typeAtt.Type().Equals("D") == true, typeAtt.Type() + " is not equal to " + "D"); - Assert.True(payloadAtt.GetPayload() != null, "payloadAtt.GetPayload() is null and it shouldn't be"); - byte[] bytes = payloadAtt.GetPayload().GetData();//safe here to just use the bytes, otherwise we should use offset, length - Assert.True(bytes.Length == payloadAtt.GetPayload().Length(), bytes.Length + " does not equal: " + payloadAtt.GetPayload().Length()); - Assert.True(payloadAtt.GetPayload().GetOffset() == 0, payloadAtt.GetPayload().GetOffset() + " does not equal: " + 0); + Assert.True(payloadAtt.Payload != null, "payloadAtt.GetPayload() is null and it shouldn't be"); + byte[] bytes = payloadAtt.Payload.GetData();//safe here to just use the bytes, otherwise we should use offset, length + Assert.True(bytes.Length == payloadAtt.Payload.Length, bytes.Length + " does not equal: " + payloadAtt.Payload.Length); + Assert.True(payloadAtt.Payload.Offset == 0, payloadAtt.Payload.Offset + " does not equal: " + 0); float pay = PayloadHelper.DecodeFloat(bytes); Assert.True(pay == 3, pay + " does not equal: " + 3); } Modified: incubator/lucene.net/trunk/test/contrib/Analyzers/Payloads/TokenOffsetPayloadTokenFilterTest.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Analyzers/Payloads/TokenOffsetPayloadTokenFilterTest.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/test/contrib/Analyzers/Payloads/TokenOffsetPayloadTokenFilterTest.cs (original) +++ incubator/lucene.net/trunk/test/contrib/Analyzers/Payloads/TokenOffsetPayloadTokenFilterTest.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections.Generic; using System.IO; using System.Linq; @@ -25,7 +46,7 @@ namespace Lucene.Net.Analyzers.Payloads while (nptf.IncrementToken()) { - Payload pay = payloadAtt.GetPayload(); + Payload pay = payloadAtt.Payload; Assert.True(pay != null, "pay is null and it shouldn't be"); byte[] data = pay.GetData(); int start = PayloadHelper.DecodeInt(data, 0); Modified: incubator/lucene.net/trunk/test/contrib/Analyzers/Payloads/TypeAsPayloadTokenFilterTest.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Analyzers/Payloads/TypeAsPayloadTokenFilterTest.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/test/contrib/Analyzers/Payloads/TypeAsPayloadTokenFilterTest.cs (original) +++ incubator/lucene.net/trunk/test/contrib/Analyzers/Payloads/TypeAsPayloadTokenFilterTest.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections.Generic; using System.IO; using System.Linq; @@ -26,8 +47,8 @@ namespace Lucene.Net.Analyzers.Payloads while (nptf.IncrementToken()) { Assert.True(typeAtt.Type().Equals(char.ToUpper(termAtt.TermBuffer()[0]).ToString()), typeAtt.Type() + " is not null and it should be"); - Assert.True(payloadAtt.GetPayload() != null, "nextToken.getPayload() is null and it shouldn't be"); - String type = Encoding.UTF8.GetString(payloadAtt.GetPayload().GetData()); ; + Assert.True(payloadAtt.Payload != null, "nextToken.getPayload() is null and it shouldn't be"); + String type = Encoding.UTF8.GetString(payloadAtt.Payload.GetData()); ; Assert.True(type != null, "type is null and it shouldn't be"); Assert.True(type.Equals(typeAtt.Type()) == true, type + " is not equal to " + typeAtt.Type()); count++; @@ -62,4 +83,4 @@ namespace Lucene.Net.Analyzers.Payloads } } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/test/contrib/Analyzers/Position/PositionFilterTest.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Analyzers/Position/PositionFilterTest.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/test/contrib/Analyzers/Position/PositionFilterTest.cs (original) +++ incubator/lucene.net/trunk/test/contrib/Analyzers/Position/PositionFilterTest.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -153,4 +174,4 @@ namespace Lucene.Net.Analyzers.Position SIX_GRAM_NO_POSITIONS_INCREMENTS); } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/test/contrib/Analyzers/Query/QueryAutoStopWordAnalyzerTest.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Analyzers/Query/QueryAutoStopWordAnalyzerTest.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/test/contrib/Analyzers/Query/QueryAutoStopWordAnalyzerTest.cs (original) +++ incubator/lucene.net/trunk/test/contrib/Analyzers/Query/QueryAutoStopWordAnalyzerTest.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections.Generic; using System.IO; using System.Linq; @@ -208,4 +229,4 @@ namespace Lucene.Net.Analyzers.Query Assert.False(ts.IncrementToken()); } } -} \ No newline at end of file +} Modified: incubator/lucene.net/trunk/test/contrib/Analyzers/Reverse/TestReverseStringFilter.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Analyzers/Reverse/TestReverseStringFilter.cs?rev=1300340&r1=1300339&r2=1300340&view=diff ============================================================================== --- incubator/lucene.net/trunk/test/contrib/Analyzers/Reverse/TestReverseStringFilter.cs (original) +++ incubator/lucene.net/trunk/test/contrib/Analyzers/Reverse/TestReverseStringFilter.cs Tue Mar 13 20:32:43 2012 @@ -1,4 +1,25 @@ -using System; +/* + * + * 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. + * +*/ + +using System; using System.Collections.Generic; using System.IO; using System.Linq; @@ -69,4 +90,4 @@ namespace Lucene.Net.Analyzers.Reverse Assert.AreEqual("ABEDCF", new String(buffer)); } } -} \ No newline at end of file +}