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 79eeb85385820445b78e4c3a050da5f599b975c4 Author: Shad Storhaug <[email protected]> AuthorDate: Sat Feb 8 21:41:45 2020 +0700 BREAKING: Lucene.Net.Support: Moved SystemProperties class to Lucene.Net.Util namespace --- src/Lucene.Net.Analysis.SmartCn/AnalyzerProfile.cs | 2 +- .../Egothor.Stemmer/Compile.cs | 2 +- .../Egothor.Stemmer/DiffIt.cs | 2 +- src/Lucene.Net.Benchmark/ByTask/Utils/Config.cs | 10 +++--- src/Lucene.Net/Store/LockVerifyServer.cs | 2 +- .../Support/{ => Util}/SystemProperties.cs | 42 ++++++++++------------ 6 files changed, 28 insertions(+), 32 deletions(-) diff --git a/src/Lucene.Net.Analysis.SmartCn/AnalyzerProfile.cs b/src/Lucene.Net.Analysis.SmartCn/AnalyzerProfile.cs index fd1f4b8..314ae62 100644 --- a/src/Lucene.Net.Analysis.SmartCn/AnalyzerProfile.cs +++ b/src/Lucene.Net.Analysis.SmartCn/AnalyzerProfile.cs @@ -1,8 +1,8 @@ // lucene version compatibility level: 4.8.1 +using Lucene.Net.Util; using System; using System.IO; using System.Security; -using Lucene.Net.Support; namespace Lucene.Net.Analysis.Cn.Smart { diff --git a/src/Lucene.Net.Analysis.Stempel/Egothor.Stemmer/Compile.cs b/src/Lucene.Net.Analysis.Stempel/Egothor.Stemmer/Compile.cs index 08d88fb..9c6767d 100644 --- a/src/Lucene.Net.Analysis.Stempel/Egothor.Stemmer/Compile.cs +++ b/src/Lucene.Net.Analysis.Stempel/Egothor.Stemmer/Compile.cs @@ -1,6 +1,6 @@ using J2N.IO; using J2N.Text; -using Lucene.Net.Support; +using Lucene.Net.Util; using System; using System.Collections.Generic; using System.IO; diff --git a/src/Lucene.Net.Analysis.Stempel/Egothor.Stemmer/DiffIt.cs b/src/Lucene.Net.Analysis.Stempel/Egothor.Stemmer/DiffIt.cs index 97bbe40..005fc20 100644 --- a/src/Lucene.Net.Analysis.Stempel/Egothor.Stemmer/DiffIt.cs +++ b/src/Lucene.Net.Analysis.Stempel/Egothor.Stemmer/DiffIt.cs @@ -1,5 +1,5 @@ using J2N.Text; -using Lucene.Net.Support; +using Lucene.Net.Util; using System; using System.Collections.Generic; using System.Globalization; diff --git a/src/Lucene.Net.Benchmark/ByTask/Utils/Config.cs b/src/Lucene.Net.Benchmark/ByTask/Utils/Config.cs index ce5f890..0755fea 100644 --- a/src/Lucene.Net.Benchmark/ByTask/Utils/Config.cs +++ b/src/Lucene.Net.Benchmark/ByTask/Utils/Config.cs @@ -1,6 +1,6 @@ using J2N; using J2N.Text; -using Lucene.Net.Support; +using Lucene.Net.Util; using System; using System.Collections.Generic; using System.Globalization; @@ -50,10 +50,10 @@ namespace Lucene.Net.Benchmarks.ByTask.Utils private static readonly string NEW_LINE = Environment.NewLine; private int roundNumber = 0; - private IDictionary<string, string> props; - private IDictionary<string, object> valByRound = new Dictionary<string, object>(); - private IDictionary<string, string> colForValByRound = new Dictionary<string, string>(); - private string algorithmText; + private readonly IDictionary<string, string> props; + private readonly IDictionary<string, object> valByRound = new Dictionary<string, object>(); + private readonly IDictionary<string, string> colForValByRound = new Dictionary<string, string>(); + private readonly string algorithmText; /// <summary> /// Read both algorithm and config properties. diff --git a/src/Lucene.Net/Store/LockVerifyServer.cs b/src/Lucene.Net/Store/LockVerifyServer.cs index 2ebf4a4..e6c8e22 100644 --- a/src/Lucene.Net/Store/LockVerifyServer.cs +++ b/src/Lucene.Net/Store/LockVerifyServer.cs @@ -1,5 +1,5 @@ using J2N.Threading; -using Lucene.Net.Support; +using Lucene.Net.Util; using System; using System.Globalization; using System.IO; diff --git a/src/Lucene.Net/Support/SystemProperties.cs b/src/Lucene.Net/Support/Util/SystemProperties.cs similarity index 88% rename from src/Lucene.Net/Support/SystemProperties.cs rename to src/Lucene.Net/Support/Util/SystemProperties.cs index 32e31c9..04c50d5 100644 --- a/src/Lucene.Net/Support/SystemProperties.cs +++ b/src/Lucene.Net/Support/Util/SystemProperties.cs @@ -1,29 +1,25 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * -*/ - -using System; +using System; using System.Security; -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. + */ + /// <summary> /// Helper for environment variables. This class helps to convert the environment /// variables to int or bool data types and also silently handles read permission
