You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2017/04/25 09:06:16 UTC
[3/6] lucenenet git commit: Updated license headers (mostly in
Support)
Updated license headers (mostly in Support)
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/076384a7
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/076384a7
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/076384a7
Branch: refs/heads/api-work
Commit: 076384a78c586ee458171e4cd3230186819c6a42
Parents: 3b96b48
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Tue Apr 25 14:56:24 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Tue Apr 25 14:56:24 2017 +0700
----------------------------------------------------------------------
.../Analysis/Util/BufferedCharFilter.cs | 27 +++++++++-
src/Lucene.Net/Support/Arrays.cs | 17 +++++++
src/Lucene.Net/Support/AssemblyExtensions.cs | 17 +++++++
src/Lucene.Net/Support/AtomicBoolean.cs | 17 +++++++
src/Lucene.Net/Support/AtomicInteger.cs | 17 +++++++
src/Lucene.Net/Support/AtomicLong.cs | 17 +++++++
src/Lucene.Net/Support/AtomicObject.cs | 17 +++++++
src/Lucene.Net/Support/AtomicReferenceArray.cs | 17 +++++++
src/Lucene.Net/Support/Buffer.cs | 27 +++++++++-
src/Lucene.Net/Support/BufferExceptions.cs | 27 +++++++++-
.../Support/BundleResourceManagerFactory.cs | 17 +++++++
src/Lucene.Net/Support/ByteArrayOutputStream.cs | 17 +++++++
src/Lucene.Net/Support/ByteBuffer.cs | 27 +++++++++-
src/Lucene.Net/Support/ByteOrder.cs | 29 +++++++++--
src/Lucene.Net/Support/Collections.cs | 17 +++++++
.../Compatibility/BinaryReaderDataInput.cs | 16 ++++++
.../Compatibility/BinaryWriterDataOutput.cs | 16 ++++++
src/Lucene.Net/Support/Compatibility/Func.cs | 17 +++++++
.../Support/ConcurrentHashMapWrapper.cs | 17 +++++++
src/Lucene.Net/Support/ConcurrentHashSet.cs | 17 +++++++
src/Lucene.Net/Support/CultureContext.cs | 17 +++++++
src/Lucene.Net/Support/DataInputStream.cs | 27 +++++++++-
src/Lucene.Net/Support/DataOutputStream.cs | 27 +++++++++-
src/Lucene.Net/Support/DictionaryExtensions.cs | 17 +++++++
src/Lucene.Net/Support/ExceptionExtensions.cs | 17 +++++++
.../ExceptionToClassNameConventionAttribute.cs | 17 +++++++
.../ExceptionToNetNumericConventionAttribute.cs | 17 +++++++
.../ExceptionToNullableEnumConvention.cs | 17 +++++++
src/Lucene.Net/Support/FileStreamExtensions.cs | 17 +++++++
src/Lucene.Net/Support/ICallable.cs | 27 +++++++++-
src/Lucene.Net/Support/ICharSequence.cs | 27 +++++++++-
src/Lucene.Net/Support/ICompletionService.cs | 17 +++++++
src/Lucene.Net/Support/IDataInput.cs | 27 +++++++++-
src/Lucene.Net/Support/IDataOutput.cs | 27 +++++++++-
.../Support/IResourceManagerFactory.cs | 17 +++++++
src/Lucene.Net/Support/IdentityComparer.cs | 17 +++++++
src/Lucene.Net/Support/IdentityHashMap.cs | 17 +++++++
src/Lucene.Net/Support/IdentityHashSet.cs | 17 +++++++
src/Lucene.Net/Support/IdentityWeakReference.cs | 17 +++++++
.../Support/IndexWriterConfigExtensions.cs | 17 +++++++
.../LimitedConcurrencyLevelTaskScheduler.cs | 52 +++++++++++++++++++-
src/Lucene.Net/Support/ListExtensions.cs | 17 +++++++
src/Lucene.Net/Support/LongBuffer.cs | 27 +++++++++-
src/Lucene.Net/Support/MathExtension.cs | 17 +++++++
.../Support/MemoryMappedFileByteBuffer.cs | 17 +++++++
src/Lucene.Net/Support/NumberFormat.cs | 17 +++++++
src/Lucene.Net/Support/PriorityQueue.cs | 2 +-
src/Lucene.Net/Support/ReentrantLock.cs | 17 +++++++
src/Lucene.Net/Support/SafeTextWriterWrapper.cs | 17 +++++++
src/Lucene.Net/Support/SetExtensions.cs | 17 +++++++
src/Lucene.Net/Support/SignedZeroComparer.cs | 17 +++++++
src/Lucene.Net/Support/StreamUtils.cs | 17 +++++++
.../Support/StringBuilderExtensions.cs | 17 +++++++
.../Support/StringCharSequenceWrapper.cs | 17 +++++++
src/Lucene.Net/Support/StringExtensions.cs | 17 +++++++
src/Lucene.Net/Support/StringTokenizer.cs | 17 +++++++
.../Support/TaskSchedulerCompletionService.cs | 17 +++++++
src/Lucene.Net/Support/Time.cs | 17 +++++++
.../Support/WritableArrayAttribute.cs | 17 +++++++
59 files changed, 1125 insertions(+), 18 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net.Analysis.Common/Analysis/Util/BufferedCharFilter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Analysis.Common/Analysis/Util/BufferedCharFilter.cs b/src/Lucene.Net.Analysis.Common/Analysis/Util/BufferedCharFilter.cs
index 4371faf..e1461a7 100644
--- a/src/Lucene.Net.Analysis.Common/Analysis/Util/BufferedCharFilter.cs
+++ b/src/Lucene.Net.Analysis.Common/Analysis/Util/BufferedCharFilter.cs
@@ -1,4 +1,29 @@
-\ufeffusing Lucene.Net.Analysis.CharFilters;
+\ufeff/*
+ * Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+using Lucene.Net.Analysis.CharFilters;
using System;
using System.IO;
using System.Text;
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/Arrays.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/Arrays.cs b/src/Lucene.Net/Support/Arrays.cs
index 2e08542..01f179a 100644
--- a/src/Lucene.Net/Support/Arrays.cs
+++ b/src/Lucene.Net/Support/Arrays.cs
@@ -5,6 +5,23 @@ using System.Reflection;
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.
+ */
+
public static class Arrays
{
public static int GetHashCode<T>(T[] a)
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/AssemblyExtensions.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/AssemblyExtensions.cs b/src/Lucene.Net/Support/AssemblyExtensions.cs
index 6bdc039..5236d14 100644
--- a/src/Lucene.Net/Support/AssemblyExtensions.cs
+++ b/src/Lucene.Net/Support/AssemblyExtensions.cs
@@ -6,6 +6,23 @@ using System.Reflection;
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.
+ */
+
public static class AssemblyExtensions
{
private static ConcurrentDictionary<TypeAndResource, string> resourceCache = new ConcurrentDictionary<TypeAndResource, string>();
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/AtomicBoolean.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/AtomicBoolean.cs b/src/Lucene.Net/Support/AtomicBoolean.cs
index d0bfac7..f5f1cbf 100644
--- a/src/Lucene.Net/Support/AtomicBoolean.cs
+++ b/src/Lucene.Net/Support/AtomicBoolean.cs
@@ -3,6 +3,23 @@ using System.Threading;
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.
+ */
+
#if FEATURE_SERIALIZABLE
[Serializable]
#endif
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/AtomicInteger.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/AtomicInteger.cs b/src/Lucene.Net/Support/AtomicInteger.cs
index 806ad4c..b3b2cca 100644
--- a/src/Lucene.Net/Support/AtomicInteger.cs
+++ b/src/Lucene.Net/Support/AtomicInteger.cs
@@ -3,6 +3,23 @@ using System.Threading;
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.
+ */
+
/// <summary>
/// NOTE: This was AtomicInteger in the JDK
/// </summary>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/AtomicLong.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/AtomicLong.cs b/src/Lucene.Net/Support/AtomicLong.cs
index 48c2146..b74edda 100644
--- a/src/Lucene.Net/Support/AtomicLong.cs
+++ b/src/Lucene.Net/Support/AtomicLong.cs
@@ -3,6 +3,23 @@ using System.Threading;
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.
+ */
+
/// <summary>
/// NOTE: This was AtomicLong in the JDK
/// </summary>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/AtomicObject.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/AtomicObject.cs b/src/Lucene.Net/Support/AtomicObject.cs
index dfa83dc..221b32b 100644
--- a/src/Lucene.Net/Support/AtomicObject.cs
+++ b/src/Lucene.Net/Support/AtomicObject.cs
@@ -3,6 +3,23 @@ using System.Threading;
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.
+ */
+
public class AtomicObject<T> where T : class
{
private T _value;
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/AtomicReferenceArray.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/AtomicReferenceArray.cs b/src/Lucene.Net/Support/AtomicReferenceArray.cs
index f6f7316..6ac1064 100644
--- a/src/Lucene.Net/Support/AtomicReferenceArray.cs
+++ b/src/Lucene.Net/Support/AtomicReferenceArray.cs
@@ -2,6 +2,23 @@
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.
+ */
+
/// <summary>
/// Mimics Java's AtomicReferenceArray class (partial implementation)
/// </summary>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/Buffer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/Buffer.cs b/src/Lucene.Net/Support/Buffer.cs
index 4490736..ba0bb4e 100644
--- a/src/Lucene.Net/Support/Buffer.cs
+++ b/src/Lucene.Net/Support/Buffer.cs
@@ -1,4 +1,29 @@
-\ufeffusing System;
+\ufeff/*
+ * Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+using System;
namespace Lucene.Net.Support
{
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/BufferExceptions.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/BufferExceptions.cs b/src/Lucene.Net/Support/BufferExceptions.cs
index da8c99d..4ffc38c 100644
--- a/src/Lucene.Net/Support/BufferExceptions.cs
+++ b/src/Lucene.Net/Support/BufferExceptions.cs
@@ -1,4 +1,29 @@
-\ufeffusing System;
+\ufeff/*
+ * Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+using System;
#if FEATURE_SERIALIZABLE
using System.Runtime.Serialization;
#endif
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/BundleResourceManagerFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/BundleResourceManagerFactory.cs b/src/Lucene.Net/Support/BundleResourceManagerFactory.cs
index 85b5414..b6b748d 100644
--- a/src/Lucene.Net/Support/BundleResourceManagerFactory.cs
+++ b/src/Lucene.Net/Support/BundleResourceManagerFactory.cs
@@ -4,6 +4,23 @@ using System.Resources;
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.
+ */
+
/// <summary>
/// This implementation of <see cref="IResourceManagerFactory"/> uses a convention
/// to retrieve resources. In Java NLS, the convention is to use the same name for the
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/ByteArrayOutputStream.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/ByteArrayOutputStream.cs b/src/Lucene.Net/Support/ByteArrayOutputStream.cs
index c992da1..fd70ba7 100644
--- a/src/Lucene.Net/Support/ByteArrayOutputStream.cs
+++ b/src/Lucene.Net/Support/ByteArrayOutputStream.cs
@@ -3,6 +3,23 @@ using System.Text;
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.
+ */
+
// Used to wrap Java's ByteArrayOutputStream's ToString() method, as MemoryStream uses default impl
public class ByteArrayOutputStream : MemoryStream
{
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/ByteBuffer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/ByteBuffer.cs b/src/Lucene.Net/Support/ByteBuffer.cs
index 01da64d..4ef6e35 100644
--- a/src/Lucene.Net/Support/ByteBuffer.cs
+++ b/src/Lucene.Net/Support/ByteBuffer.cs
@@ -1,4 +1,29 @@
-\ufeffusing System;
+\ufeff/*
+ * Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+using System;
using System.Diagnostics;
using System.Text;
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/ByteOrder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/ByteOrder.cs b/src/Lucene.Net/Support/ByteOrder.cs
index ee9a12a..b145b87 100644
--- a/src/Lucene.Net/Support/ByteOrder.cs
+++ b/src/Lucene.Net/Support/ByteOrder.cs
@@ -1,8 +1,27 @@
-\ufeffusing System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+\ufeff/*
+ * Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
namespace Lucene.Net.Support
{
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/Collections.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/Collections.cs b/src/Lucene.Net/Support/Collections.cs
index 5e4affc..6f03419 100644
--- a/src/Lucene.Net/Support/Collections.cs
+++ b/src/Lucene.Net/Support/Collections.cs
@@ -10,6 +10,23 @@ using System.Text;
namespace Lucene.Net
{
+ /*
+ * 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.
+ */
+
public static class Collections
{
public static bool AddAll<T>(ISet<T> set, IEnumerable<T> elements)
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/Compatibility/BinaryReaderDataInput.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/Compatibility/BinaryReaderDataInput.cs b/src/Lucene.Net/Support/Compatibility/BinaryReaderDataInput.cs
index d355df0..414c294 100644
--- a/src/Lucene.Net/Support/Compatibility/BinaryReaderDataInput.cs
+++ b/src/Lucene.Net/Support/Compatibility/BinaryReaderDataInput.cs
@@ -4,6 +4,22 @@ using System.IO;
namespace Lucene.Net.Support.Compatibility
{
+ /*
+ * 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.
+ */
public class BinaryReaderDataInput : DataInput, IDisposable
{
private readonly BinaryReader br;
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/Compatibility/BinaryWriterDataOutput.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/Compatibility/BinaryWriterDataOutput.cs b/src/Lucene.Net/Support/Compatibility/BinaryWriterDataOutput.cs
index 31e5b07..f895e94 100644
--- a/src/Lucene.Net/Support/Compatibility/BinaryWriterDataOutput.cs
+++ b/src/Lucene.Net/Support/Compatibility/BinaryWriterDataOutput.cs
@@ -4,6 +4,22 @@ using Lucene.Net.Store;
namespace Lucene.Net.Support.Compatibility
{
+ /*
+ * 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.
+ */
public class BinaryWriterDataOutput : DataOutput, IDisposable
{
private readonly BinaryWriter bw;
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/Compatibility/Func.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/Compatibility/Func.cs b/src/Lucene.Net/Support/Compatibility/Func.cs
index 392d370..2b98d4b 100644
--- a/src/Lucene.Net/Support/Compatibility/Func.cs
+++ b/src/Lucene.Net/Support/Compatibility/Func.cs
@@ -1,5 +1,22 @@
\ufeffnamespace 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.
+ */
+
#if NET35
public delegate TResult Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4,
T5 arg5, T6 arg6, T7 arg7, T8 arg8,
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/ConcurrentHashMapWrapper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/ConcurrentHashMapWrapper.cs b/src/Lucene.Net/Support/ConcurrentHashMapWrapper.cs
index 4d5110f..b257082 100644
--- a/src/Lucene.Net/Support/ConcurrentHashMapWrapper.cs
+++ b/src/Lucene.Net/Support/ConcurrentHashMapWrapper.cs
@@ -6,6 +6,23 @@ using System.Threading;
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.
+ */
+
public class ConcurrentHashMapWrapper<TKey, TValue> : IDictionary<TKey, TValue>
{
private readonly ReaderWriterLockSlim _lock = new ReaderWriterLockSlim(LockRecursionPolicy.SupportsRecursion);
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/ConcurrentHashSet.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/ConcurrentHashSet.cs b/src/Lucene.Net/Support/ConcurrentHashSet.cs
index 8925225..1ef6e2e 100644
--- a/src/Lucene.Net/Support/ConcurrentHashSet.cs
+++ b/src/Lucene.Net/Support/ConcurrentHashSet.cs
@@ -3,6 +3,23 @@ using System.Threading;
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.
+ */
+
public sealed class ConcurrentHashSet<T> : ISet<T>
{
private readonly ReaderWriterLockSlim _lock = new ReaderWriterLockSlim(LockRecursionPolicy.SupportsRecursion);
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/CultureContext.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/CultureContext.cs b/src/Lucene.Net/Support/CultureContext.cs
index b1a52f9..4a26a14 100644
--- a/src/Lucene.Net/Support/CultureContext.cs
+++ b/src/Lucene.Net/Support/CultureContext.cs
@@ -4,6 +4,23 @@ using System.Threading;
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.
+ */
+
/// <summary>
/// Allows switching the current thread to a new culture in a using block that will automatically
/// return the culture to its previous state upon completion.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/DataInputStream.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/DataInputStream.cs b/src/Lucene.Net/Support/DataInputStream.cs
index c8d3894..6558e87 100644
--- a/src/Lucene.Net/Support/DataInputStream.cs
+++ b/src/Lucene.Net/Support/DataInputStream.cs
@@ -1,4 +1,29 @@
-\ufeffusing System;
+\ufeff/*
+ * Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+using System;
using System.IO;
namespace Lucene.Net.Support
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/DataOutputStream.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/DataOutputStream.cs b/src/Lucene.Net/Support/DataOutputStream.cs
index fb6d57f..42fcf69 100644
--- a/src/Lucene.Net/Support/DataOutputStream.cs
+++ b/src/Lucene.Net/Support/DataOutputStream.cs
@@ -1,4 +1,29 @@
-\ufeffusing System;
+\ufeff/*
+ * Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+using System;
using System.IO;
using System.Runtime.CompilerServices;
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/DictionaryExtensions.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/DictionaryExtensions.cs b/src/Lucene.Net/Support/DictionaryExtensions.cs
index 29d0db8..18acd6a 100644
--- a/src/Lucene.Net/Support/DictionaryExtensions.cs
+++ b/src/Lucene.Net/Support/DictionaryExtensions.cs
@@ -2,6 +2,23 @@
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.
+ */
+
public static class DictionaryExtensions
{
public static void PutAll<TKey, TValue>(this IDictionary<TKey, TValue> dict, IEnumerable<KeyValuePair<TKey, TValue>> kvps)
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/ExceptionExtensions.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/ExceptionExtensions.cs b/src/Lucene.Net/Support/ExceptionExtensions.cs
index b69c6de..1a722ee 100644
--- a/src/Lucene.Net/Support/ExceptionExtensions.cs
+++ b/src/Lucene.Net/Support/ExceptionExtensions.cs
@@ -4,6 +4,23 @@ using System.Linq;
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.
+ */
+
/// <summary>
/// Extensions to the <see cref="Exception"/> class to allow for
/// adding and retrieving suppressed exceptions, like you can do in Java.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/ExceptionToClassNameConventionAttribute.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/ExceptionToClassNameConventionAttribute.cs b/src/Lucene.Net/Support/ExceptionToClassNameConventionAttribute.cs
index 7711c02..3045933 100644
--- a/src/Lucene.Net/Support/ExceptionToClassNameConventionAttribute.cs
+++ b/src/Lucene.Net/Support/ExceptionToClassNameConventionAttribute.cs
@@ -2,6 +2,23 @@
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.
+ */
+
/// <summary>
/// Use this attribute to make an exception to the class naming rules (which should not be named like Interfaces).
/// </summary>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/ExceptionToNetNumericConventionAttribute.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/ExceptionToNetNumericConventionAttribute.cs b/src/Lucene.Net/Support/ExceptionToNetNumericConventionAttribute.cs
index 270b56f..995e65e 100644
--- a/src/Lucene.Net/Support/ExceptionToNetNumericConventionAttribute.cs
+++ b/src/Lucene.Net/Support/ExceptionToNetNumericConventionAttribute.cs
@@ -2,6 +2,23 @@
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.
+ */
+
/// <summary>
/// Properties, methods, or events marked with this attribute can ignore
/// the numeric naming conventions of "Int16", "Int32", "Int64", and "Single"
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/ExceptionToNullableEnumConvention.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/ExceptionToNullableEnumConvention.cs b/src/Lucene.Net/Support/ExceptionToNullableEnumConvention.cs
index db046ba..50e90ff 100644
--- a/src/Lucene.Net/Support/ExceptionToNullableEnumConvention.cs
+++ b/src/Lucene.Net/Support/ExceptionToNullableEnumConvention.cs
@@ -2,6 +2,23 @@
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.
+ */
+
/// <summary>
/// Use this attribute to make an exception to the nullable enum rule.
/// Some of these cannot be avoided.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/FileStreamExtensions.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/FileStreamExtensions.cs b/src/Lucene.Net/Support/FileStreamExtensions.cs
index 1e9fc14..e3d2409 100644
--- a/src/Lucene.Net/Support/FileStreamExtensions.cs
+++ b/src/Lucene.Net/Support/FileStreamExtensions.cs
@@ -2,6 +2,23 @@
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.
+ */
+
public static class FileStreamExtensions
{
private static object _fsReadLock = new object();
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/ICallable.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/ICallable.cs b/src/Lucene.Net/Support/ICallable.cs
index c42239b..a3389f4 100644
--- a/src/Lucene.Net/Support/ICallable.cs
+++ b/src/Lucene.Net/Support/ICallable.cs
@@ -1,4 +1,29 @@
-\ufeffnamespace Lucene.Net.Support
+\ufeff/*
+ * Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+namespace Lucene.Net.Support
{
public interface ICallable<V>
{
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/ICharSequence.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/ICharSequence.cs b/src/Lucene.Net/Support/ICharSequence.cs
index ea0f3a2..1193379 100644
--- a/src/Lucene.Net/Support/ICharSequence.cs
+++ b/src/Lucene.Net/Support/ICharSequence.cs
@@ -1,4 +1,29 @@
-\ufeffnamespace Lucene.Net.Support
+\ufeff/*
+ * Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+namespace Lucene.Net.Support
{
public interface ICharSequence
{
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/ICompletionService.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/ICompletionService.cs b/src/Lucene.Net/Support/ICompletionService.cs
index 2ea020f..69d862f 100644
--- a/src/Lucene.Net/Support/ICompletionService.cs
+++ b/src/Lucene.Net/Support/ICompletionService.cs
@@ -2,6 +2,23 @@
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.
+ */
+
public interface ICompletionService<V>
{
//Task<V> Poll();
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/IDataInput.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/IDataInput.cs b/src/Lucene.Net/Support/IDataInput.cs
index ad10b9c..323b454 100644
--- a/src/Lucene.Net/Support/IDataInput.cs
+++ b/src/Lucene.Net/Support/IDataInput.cs
@@ -1,4 +1,29 @@
-\ufeffnamespace Lucene.Net.Support
+\ufeff/*
+ * Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+namespace Lucene.Net.Support
{
/// <summary>
/// Equivalent to Java's DataInput interface
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/IDataOutput.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/IDataOutput.cs b/src/Lucene.Net/Support/IDataOutput.cs
index a40fd87..4b1f662 100644
--- a/src/Lucene.Net/Support/IDataOutput.cs
+++ b/src/Lucene.Net/Support/IDataOutput.cs
@@ -1,4 +1,29 @@
-\ufeffnamespace Lucene.Net.Support
+\ufeff/*
+ * Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+namespace Lucene.Net.Support
{
/// <summary>
/// Equivalent to Java's DataOutut interface
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/IResourceManagerFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/IResourceManagerFactory.cs b/src/Lucene.Net/Support/IResourceManagerFactory.cs
index 3038064..1dae18b 100644
--- a/src/Lucene.Net/Support/IResourceManagerFactory.cs
+++ b/src/Lucene.Net/Support/IResourceManagerFactory.cs
@@ -3,6 +3,23 @@ using System.Resources;
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.
+ */
+
/// <summary>
/// LUCENENET specific interface used to inject instances of
/// <see cref="ResourceManager"/>. This
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/IdentityComparer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/IdentityComparer.cs b/src/Lucene.Net/Support/IdentityComparer.cs
index 27c1fee..9d493cd 100644
--- a/src/Lucene.Net/Support/IdentityComparer.cs
+++ b/src/Lucene.Net/Support/IdentityComparer.cs
@@ -5,6 +5,23 @@ using System.Runtime.CompilerServices;
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.
+ */
+
#if FEATURE_SERIALIZABLE
[Serializable]
#endif
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/IdentityHashMap.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/IdentityHashMap.cs b/src/Lucene.Net/Support/IdentityHashMap.cs
index 1fd3e8d..9cb7a02 100644
--- a/src/Lucene.Net/Support/IdentityHashMap.cs
+++ b/src/Lucene.Net/Support/IdentityHashMap.cs
@@ -3,6 +3,23 @@ using System.Collections.Generic;
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.
+ */
+
#if FEATURE_SERIALIZABLE
[Serializable]
#endif
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/IdentityHashSet.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/IdentityHashSet.cs b/src/Lucene.Net/Support/IdentityHashSet.cs
index db865e4..e0c64f2 100644
--- a/src/Lucene.Net/Support/IdentityHashSet.cs
+++ b/src/Lucene.Net/Support/IdentityHashSet.cs
@@ -3,6 +3,23 @@ using System.Collections.Generic;
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.
+ */
+
#if FEATURE_SERIALIZABLE
[Serializable]
#endif
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/IdentityWeakReference.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/IdentityWeakReference.cs b/src/Lucene.Net/Support/IdentityWeakReference.cs
index 1b64c0a..6d9a02a 100644
--- a/src/Lucene.Net/Support/IdentityWeakReference.cs
+++ b/src/Lucene.Net/Support/IdentityWeakReference.cs
@@ -3,6 +3,23 @@ using System.Runtime.CompilerServices;
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.
+ */
+
public class IdentityWeakReference<T> : WeakReference
where T : class
{
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/IndexWriterConfigExtensions.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/IndexWriterConfigExtensions.cs b/src/Lucene.Net/Support/IndexWriterConfigExtensions.cs
index fa22d98..0311eef 100644
--- a/src/Lucene.Net/Support/IndexWriterConfigExtensions.cs
+++ b/src/Lucene.Net/Support/IndexWriterConfigExtensions.cs
@@ -4,6 +4,23 @@ using Lucene.Net.Search.Similarities;
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.
+ */
+
/// <summary>
/// Extension methods that can be used to provide similar
/// <see cref="Index.IndexWriterConfig"/> syntax as Java Lucene.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/LimitedConcurrencyLevelTaskScheduler.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/LimitedConcurrencyLevelTaskScheduler.cs b/src/Lucene.Net/Support/LimitedConcurrencyLevelTaskScheduler.cs
index 9190722..37b617f 100644
--- a/src/Lucene.Net/Support/LimitedConcurrencyLevelTaskScheduler.cs
+++ b/src/Lucene.Net/Support/LimitedConcurrencyLevelTaskScheduler.cs
@@ -1,4 +1,54 @@
-\ufeffusing System;
+\ufeff/*
+MICROSOFT LIMITED PUBLIC LICENSE version 1.1
+This license governs use of code marked as "sample" or "example" available on this web site
+without a license agreement, as provided under the section above titled
+"NOTICE SPECIFIC TO SOFTWARE AVAILABLE ON THIS WEB SITE." If you use such
+code (the "software"), you accept this license. If you do not accept the
+license, do not use the software.
+
+1. Definitions
+The terms "reproduce," "reproduction," "derivative works," and "distribution" have the
+same meaning here as under U.S. copyright law.
+A "contribution" is the original software, or any additions or changes to the software.
+A "contributor" is any person that distributes its contribution under this license.
+"Licensed patents" are a contributor\u2019s patent claims that read directly on its contribution.
+
+2. Grant of Rights
+(A) Copyright Grant - Subject to the terms of this license, including the license conditions
+and limitations in section 3, each contributor grants you a non-exclusive, worldwide,
+royalty-free copyright license to reproduce its contribution, prepare derivative works
+of its contribution, and distribute its contribution or any derivative works that you create.
+(B) Patent Grant - Subject to the terms of this license, including the license conditions
+and limitations in section 3, each contributor grants you a non-exclusive, worldwide,
+royalty-free license under its licensed patents to make, have made, use, sell,
+offer for sale, import, and/or otherwise dispose of its contribution in the
+software or derivative works of the contribution in the software.
+
+3. Conditions and Limitations
+(A) No Trademark License- This license does not grant you rights to use any contributors\u2019
+name, logo, or trademarks.
+(B) If you bring a patent claim against any contributor over patents that you claim are
+infringed by the software, your patent license from such contributor to the software
+ends automatically.
+(C) If you distribute any portion of the software, you must retain all copyright, patent,
+trademark, and attribution notices that are present in the software.
+(D) If you distribute any portion of the software in source code form, you may do so only
+under this license by including a complete copy of this license with your distribution.
+If you distribute any portion of the software in compiled or object code form, you may
+only do so under a license that complies with this license.
+(E) The software is licensed "as-is." You bear the risk of using it. The contributors
+give no express warranties, guarantees or conditions. You may have additional consumer
+rights under your local laws which this license cannot change. To the extent permitted
+under your local laws, the contributors exclude the implied warranties of merchantability,
+fitness for a particular purpose and non-infringement.
+(F) Platform Limitation - The licenses granted in sections 2(A) and 2(B) extend only
+to the software or derivative works that you create that run directly on a Microsoft
+Windows operating system product, Microsoft run-time technology (such as the .NET
+Framework or Silverlight), or Microsoft application platform (such as Microsoft
+Office or Microsoft Dynamics).
+*/
+
+using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/ListExtensions.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/ListExtensions.cs b/src/Lucene.Net/Support/ListExtensions.cs
index 84ae3cb..647f386 100644
--- a/src/Lucene.Net/Support/ListExtensions.cs
+++ b/src/Lucene.Net/Support/ListExtensions.cs
@@ -3,6 +3,23 @@ using System.Collections.Generic;
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.
+ */
+
public static class ListExtensions
{
public static void AddRange<T>(this IList<T> list, IEnumerable<T> values)
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/LongBuffer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/LongBuffer.cs b/src/Lucene.Net/Support/LongBuffer.cs
index 31e7ba2..e3d76c1 100644
--- a/src/Lucene.Net/Support/LongBuffer.cs
+++ b/src/Lucene.Net/Support/LongBuffer.cs
@@ -1,4 +1,29 @@
-\ufeffusing System;
+\ufeff/*
+ * Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+using System;
using System.Text;
namespace Lucene.Net.Support
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/MathExtension.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/MathExtension.cs b/src/Lucene.Net/Support/MathExtension.cs
index fe62876..ce12d4a 100644
--- a/src/Lucene.Net/Support/MathExtension.cs
+++ b/src/Lucene.Net/Support/MathExtension.cs
@@ -2,6 +2,23 @@
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.
+ */
+
public static class MathExtension
{
/// <summary>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/MemoryMappedFileByteBuffer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/MemoryMappedFileByteBuffer.cs b/src/Lucene.Net/Support/MemoryMappedFileByteBuffer.cs
index c0d43fc..a48b8b8 100644
--- a/src/Lucene.Net/Support/MemoryMappedFileByteBuffer.cs
+++ b/src/Lucene.Net/Support/MemoryMappedFileByteBuffer.cs
@@ -3,6 +3,23 @@ using System.IO.MemoryMappedFiles;
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.
+ */
+
internal sealed class MemoryMappedFileByteBuffer : ByteBuffer, IDisposable
{
private MemoryMappedViewAccessor _accessor;
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/NumberFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/NumberFormat.cs b/src/Lucene.Net/Support/NumberFormat.cs
index dc52236..9c9ec64 100644
--- a/src/Lucene.Net/Support/NumberFormat.cs
+++ b/src/Lucene.Net/Support/NumberFormat.cs
@@ -7,6 +7,23 @@ using System.Threading.Tasks;
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.
+ */
+
public class NumberFormat
{
protected readonly CultureInfo locale;
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/PriorityQueue.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/PriorityQueue.cs b/src/Lucene.Net/Support/PriorityQueue.cs
index b4e4fb9..04845c1 100644
--- a/src/Lucene.Net/Support/PriorityQueue.cs
+++ b/src/Lucene.Net/Support/PriorityQueue.cs
@@ -28,7 +28,7 @@ using System.Collections;
using System.Collections.Generic;
using System.Linq;
-namespace Lucene.Net.Support
+namespace Lucene.Net.Support
{
/// <summary>
/// An unbounded priority queue based on a priority heap.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/ReentrantLock.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/ReentrantLock.cs b/src/Lucene.Net/Support/ReentrantLock.cs
index bee24be..7691d04 100644
--- a/src/Lucene.Net/Support/ReentrantLock.cs
+++ b/src/Lucene.Net/Support/ReentrantLock.cs
@@ -2,6 +2,23 @@
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.
+ */
+
public class ReentrantLock
{
// .NET Port: lock object used to emulate ReentrantLock
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/SafeTextWriterWrapper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/SafeTextWriterWrapper.cs b/src/Lucene.Net/Support/SafeTextWriterWrapper.cs
index b4e5f8e..f4383ff 100644
--- a/src/Lucene.Net/Support/SafeTextWriterWrapper.cs
+++ b/src/Lucene.Net/Support/SafeTextWriterWrapper.cs
@@ -8,6 +8,23 @@ using System.Threading.Tasks;
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.
+ */
+
/// <summary>
/// Decorates a <see cref="TextWriter"/> instance and
/// makes no assumptions about whether <see cref="IDisposable.Dispose"/>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/SetExtensions.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/SetExtensions.cs b/src/Lucene.Net/Support/SetExtensions.cs
index b8f7c3f..5e2f3c6 100644
--- a/src/Lucene.Net/Support/SetExtensions.cs
+++ b/src/Lucene.Net/Support/SetExtensions.cs
@@ -3,6 +3,23 @@ using System.Diagnostics;
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.
+ */
+
public static class SetExtensions
{
[DebuggerStepThrough]
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/SignedZeroComparer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/SignedZeroComparer.cs b/src/Lucene.Net/Support/SignedZeroComparer.cs
index 2ebb9f6..784c7b2 100644
--- a/src/Lucene.Net/Support/SignedZeroComparer.cs
+++ b/src/Lucene.Net/Support/SignedZeroComparer.cs
@@ -3,6 +3,23 @@ using System.Collections.Generic;
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.
+ */
+
/// <summary>
/// LUCENENET specific comparer to handle the special case
/// of comparing negative zero with positive zero.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/StreamUtils.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/StreamUtils.cs b/src/Lucene.Net/Support/StreamUtils.cs
index 142d6f9..5b9ef0e 100644
--- a/src/Lucene.Net/Support/StreamUtils.cs
+++ b/src/Lucene.Net/Support/StreamUtils.cs
@@ -4,6 +4,23 @@ using System.Runtime.Serialization.Formatters.Binary;
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.
+ */
+
public static class StreamUtils
{
static readonly BinaryFormatter formatter = new BinaryFormatter();
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/StringBuilderExtensions.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/StringBuilderExtensions.cs b/src/Lucene.Net/Support/StringBuilderExtensions.cs
index 5292e0c..5200e02 100644
--- a/src/Lucene.Net/Support/StringBuilderExtensions.cs
+++ b/src/Lucene.Net/Support/StringBuilderExtensions.cs
@@ -3,6 +3,23 @@ using System.Text;
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.
+ */
+
public static class StringBuilderExtensions
{
/// <summary>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/076384a7/src/Lucene.Net/Support/StringCharSequenceWrapper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/StringCharSequenceWrapper.cs b/src/Lucene.Net/Support/StringCharSequenceWrapper.cs
index 662080c..3e95d55 100644
--- a/src/Lucene.Net/Support/StringCharSequenceWrapper.cs
+++ b/src/Lucene.Net/Support/StringCharSequenceWrapper.cs
@@ -2,6 +2,23 @@
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.
+ */
+
public class StringCharSequenceWrapper : ICharSequence
{
public static readonly StringCharSequenceWrapper Empty = new StringCharSequenceWrapper(string.Empty);