This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit d8edac296b8cbebf8b7aebeff18ac4a6a86f263a
Author: Shad Storhaug <[email protected]>
AuthorDate: Fri Feb 7 10:05:11 2020 +0700

    BREAKING: Lucene.Net.Support.IO: Marked BinaryReaderDataInput, 
BinaryReaderDataOutput and ByteArrayOutputStream internal
---
 .../Serialized/SerializedDVStrategy.cs             |  3 +-
 src/Lucene.Net/Properties/AssemblyInfo.cs          |  1 +
 src/Lucene.Net/Support/IO/BinaryReaderDataInput.cs | 32 +++++++++++-----------
 .../Support/IO/BinaryWriterDataOutput.cs           | 32 +++++++++++-----------
 src/Lucene.Net/Support/IO/ByteArrayOutputStream.cs | 32 +++++++++++-----------
 5 files changed, 50 insertions(+), 50 deletions(-)

diff --git a/src/Lucene.Net.Spatial/Serialized/SerializedDVStrategy.cs 
b/src/Lucene.Net.Spatial/Serialized/SerializedDVStrategy.cs
index e18669b..935b7e7 100644
--- a/src/Lucene.Net.Spatial/Serialized/SerializedDVStrategy.cs
+++ b/src/Lucene.Net.Spatial/Serialized/SerializedDVStrategy.cs
@@ -4,7 +4,6 @@ using Lucene.Net.Queries.Function;
 using Lucene.Net.Search;
 using Lucene.Net.Spatial.Queries;
 using Lucene.Net.Spatial.Util;
-using Lucene.Net.Support.IO;
 using Lucene.Net.Util;
 using Spatial4n.Core.Context;
 using Spatial4n.Core.IO;
@@ -61,7 +60,7 @@ namespace Lucene.Net.Spatial.Serialized
         public override Field[] CreateIndexableFields(IShape shape)
         {
             int bufSize = Math.Max(128, (int)(this.indexLastBufSize * 
1.5));//50% headroom over last
-            ByteArrayOutputStream byteStream = new 
ByteArrayOutputStream(bufSize);
+            MemoryStream byteStream = new MemoryStream(bufSize);
             BytesRef bytesRef = new BytesRef();//receiver of byteStream's bytes
             try
             {
diff --git a/src/Lucene.Net/Properties/AssemblyInfo.cs 
b/src/Lucene.Net/Properties/AssemblyInfo.cs
index b3d4cca..82f12d2 100644
--- a/src/Lucene.Net/Properties/AssemblyInfo.cs
+++ b/src/Lucene.Net/Properties/AssemblyInfo.cs
@@ -70,6 +70,7 @@ using System.Runtime.CompilerServices;
 [assembly: InternalsVisibleTo("Lucene.Net.Tests.Analysis.Common, PublicKey=" + 
AssemblyKeys.PublicKey)]
 [assembly: InternalsVisibleTo("Lucene.Net.Tests.Analysis.Kuromoji, PublicKey=" 
+ AssemblyKeys.PublicKey)]
 [assembly: InternalsVisibleTo("Lucene.Net.Tests.Analysis.Phonetic, PublicKey=" 
+ AssemblyKeys.PublicKey)]
+[assembly: InternalsVisibleTo("Lucene.Net.Tests.Benchmark, PublicKey=" + 
AssemblyKeys.PublicKey)]
 [assembly: InternalsVisibleTo("Lucene.Net.Tests.Expressions, PublicKey=" + 
AssemblyKeys.PublicKey)]
 [assembly: InternalsVisibleTo("Lucene.Net.Tests.Facet, PublicKey=" + 
AssemblyKeys.PublicKey)]
 [assembly: InternalsVisibleTo("Lucene.Net.Tests.Grouping, PublicKey=" + 
AssemblyKeys.PublicKey)]
diff --git a/src/Lucene.Net/Support/IO/BinaryReaderDataInput.cs 
b/src/Lucene.Net/Support/IO/BinaryReaderDataInput.cs
index 0fff4d7..1109784 100644
--- a/src/Lucene.Net/Support/IO/BinaryReaderDataInput.cs
+++ b/src/Lucene.Net/Support/IO/BinaryReaderDataInput.cs
@@ -5,22 +5,22 @@ using System.IO;
 namespace Lucene.Net.Support.IO
 {
     /*
-        * 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
+     * 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 BinaryReaderDataInput : DataInput, IDisposable
     {
         private readonly BinaryReader br;
         public BinaryReaderDataInput(BinaryReader br)
diff --git a/src/Lucene.Net/Support/IO/BinaryWriterDataOutput.cs 
b/src/Lucene.Net/Support/IO/BinaryWriterDataOutput.cs
index 98c5b7b..255788e 100644
--- a/src/Lucene.Net/Support/IO/BinaryWriterDataOutput.cs
+++ b/src/Lucene.Net/Support/IO/BinaryWriterDataOutput.cs
@@ -5,22 +5,22 @@ using Lucene.Net.Store;
 namespace Lucene.Net.Support.IO
 {
     /*
-        * 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
+     * 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 BinaryWriterDataOutput : DataOutput, IDisposable
     {
         private readonly BinaryWriter bw;
 
diff --git a/src/Lucene.Net/Support/IO/ByteArrayOutputStream.cs 
b/src/Lucene.Net/Support/IO/ByteArrayOutputStream.cs
index 09122ed..1bdb4fc 100644
--- a/src/Lucene.Net/Support/IO/ByteArrayOutputStream.cs
+++ b/src/Lucene.Net/Support/IO/ByteArrayOutputStream.cs
@@ -4,24 +4,24 @@ using System.Text;
 namespace Lucene.Net.Support.IO
 {
     /*
-        * 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.
-        */
+     * 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
+    internal class ByteArrayOutputStream : MemoryStream
     {
         public ByteArrayOutputStream()
         {

Reply via email to