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 2020/02/09 06:16:17 UTC

[lucenenet] 25/35: BREAKING: Lucene.Net.Support: Moved ExceptionExtensions to Lucene.Net.Util namespace

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 6412f5d95e57c2f5f4f6fa652ecf2e37621ce2bb
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Sat Feb 8 14:49:53 2020 +0700

    BREAKING: Lucene.Net.Support: Moved ExceptionExtensions to Lucene.Net.Util namespace
---
 src/Lucene.Net/Index/IndexReader.cs                |  1 +
 .../Support/{ => Util}/ExceptionExtensions.cs      | 32 +++++++++++-----------
 src/Lucene.Net/Util/IOUtils.cs                     |  2 +-
 3 files changed, 18 insertions(+), 17 deletions(-)

diff --git a/src/Lucene.Net/Index/IndexReader.cs b/src/Lucene.Net/Index/IndexReader.cs
index 1ccbcb8..1ae639e 100644
--- a/src/Lucene.Net/Index/IndexReader.cs
+++ b/src/Lucene.Net/Index/IndexReader.cs
@@ -1,6 +1,7 @@
 using J2N.Threading.Atomic;
 using Lucene.Net.Documents;
 using Lucene.Net.Support;
+using Lucene.Net.Util;
 using System;
 using System.Collections;
 using System.Collections.Generic;
diff --git a/src/Lucene.Net/Support/ExceptionExtensions.cs b/src/Lucene.Net/Support/Util/ExceptionExtensions.cs
similarity index 57%
rename from src/Lucene.Net/Support/ExceptionExtensions.cs
rename to src/Lucene.Net/Support/Util/ExceptionExtensions.cs
index 1a722ee..bd38e59 100644
--- a/src/Lucene.Net/Support/ExceptionExtensions.cs
+++ b/src/Lucene.Net/Support/Util/ExceptionExtensions.cs
@@ -2,24 +2,24 @@
 using System.Collections.Generic;
 using System.Linq;
 
-namespace Lucene.Net.Support
+namespace Lucene.Net.Util
 {
     /*
-	 * 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.
+     */
 
     /// <summary>
     /// Extensions to the <see cref="Exception"/> class to allow for
diff --git a/src/Lucene.Net/Util/IOUtils.cs b/src/Lucene.Net/Util/IOUtils.cs
index 65f4454..39aecdc 100644
--- a/src/Lucene.Net/Util/IOUtils.cs
+++ b/src/Lucene.Net/Util/IOUtils.cs
@@ -349,7 +349,7 @@ namespace Lucene.Net.Util
         /// <summary>
         /// Since there's no C# equivalent of Java's Exception.AddSuppressed, we add the
         /// suppressed exceptions to a data field via the 
-        /// <see cref="Support.ExceptionExtensions.AddSuppressed(Exception, Exception)"/> method.
+        /// <see cref="ExceptionExtensions.AddSuppressed(Exception, Exception)"/> method.
         /// <para/>
         /// The exceptions can be retrieved by calling <see cref="ExceptionExtensions.GetSuppressed(Exception)"/>
         /// or <see cref="ExceptionExtensions.GetSuppressedAsList(Exception)"/>.