Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leave debugStream as null on construction of parser token managers #949

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@
<Description>Analyzers for indexing content in different languages and domains for the Lucene.NET full-text search engine library from The Apache Software Foundation.</Description>
<PackageDocumentationRelativeUrl>analysis-common/overview.html</PackageDocumentationRelativeUrl>
</PropertyGroup>

<Import Project="$(SolutionDir).build/nuget.props" />

<PropertyGroup>
<TargetFrameworks>net6.0;netstandard2.1;netstandard2.0;net462</TargetFrameworks>
<TargetFramework>net6.0</TargetFramework>

<AssemblyTitle>Lucene.Net.Analysis.Common</AssemblyTitle>
<PackageTags>$(PackageTags);analysis</PackageTags>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
<NoWarn>$(NoWarn);1591;1573</NoWarn>
</PropertyGroup>



<ItemGroup>
<EmbeddedResource Include="**/*.rslp" Exclude="bin/**/*;obj/**/*" Label="RSLP Test Data" />
Expand Down
6 changes: 3 additions & 3 deletions src/Lucene.Net.Queries/Lucene.Net.Queries.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@
</PropertyGroup>

<Import Project="$(SolutionDir).build/nuget.props" />

<PropertyGroup>
<TargetFrameworks>net6.0;netstandard2.1;netstandard2.0;net462</TargetFrameworks>
<TargetFramework>net6.0</TargetFramework>

<AssemblyTitle>Lucene.Net.Queries</AssemblyTitle>
<PackageTags>$(PackageTags);query;queries</PackageTags>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
<NoWarn>$(NoWarn);1591;1573</NoWarn>
</PropertyGroup>



<ItemGroup>
<ProjectReference Include="..\Lucene.Net\Lucene.Net.csproj" />
Expand Down
4 changes: 2 additions & 2 deletions src/Lucene.Net.QueryParser/Classic/QueryParserTokenManager.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Lucene.Net.Support.IO;
using Lucene.Net.Support.IO;
using System;
using System.Diagnostics.CodeAnalysis;
using System.IO;
Expand Down Expand Up @@ -31,7 +31,7 @@ public class QueryParserTokenManager //: QueryParserConstants
{
/// <summary>Debug output. </summary>
#pragma warning disable IDE0052 // Remove unread private members
private TextWriter debugStream = Console.Out; // LUCENENET specific - made private, since we already have a setter
private TextWriter debugStream; // LUCENENET specific - made private, since we already have a setter
#pragma warning restore IDE0052 // Remove unread private members
/// <summary>Set debug output. </summary>
public virtual void SetDebugStream(TextWriter ds)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Lucene.Net.Support.IO;
using Lucene.Net.Support.IO;
using System.Diagnostics.CodeAnalysis;
using System;
using System.IO;
Expand Down Expand Up @@ -32,7 +32,7 @@ public class StandardSyntaxParserTokenManager /*: StandardSyntaxParserConstants*
{
/// <summary>Debug output.</summary>
#pragma warning disable IDE0052 // Remove unread private members
private TextWriter debugStream = Console.Out; // LUCENENET specific - made private, since we already have a setter
private TextWriter debugStream; // LUCENENET specific - made private, since we already have a setter
#pragma warning restore IDE0052 // Remove unread private members
/// <summary>Set debug output.</summary>
public void SetDebugStream(TextWriter ds) { debugStream = new SafeTextWriterWrapper(ds); }
Expand Down
12 changes: 6 additions & 6 deletions src/Lucene.Net.QueryParser/Lucene.Net.QueryParser.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,22 @@
</PropertyGroup>

<Import Project="$(SolutionDir).build/nuget.props" />

<PropertyGroup>
<TargetFrameworks>net6.0;netstandard2.1;netstandard2.0;net462</TargetFrameworks>
<TargetFramework>net6.0</TargetFramework>

<RootNamespace>Lucene.Net.QueryParsers</RootNamespace>

<AssemblyTitle>Lucene.Net.QueryParser</AssemblyTitle>
<PackageTags>$(PackageTags);query;queryparser</PackageTags>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>

<NoWarn>$(NoWarn);1591;1573</NoWarn>
<NoWarn Label="Remove unused parameter">$(NoWarn);IDE0060</NoWarn>
</PropertyGroup>



<ItemGroup>
<ProjectReference Include="..\Lucene.Net.Analysis.Common\Lucene.Net.Analysis.Common.csproj" />
<ProjectReference Include="..\Lucene.Net.Queries\Lucene.Net.Queries.csproj" />
Expand Down
6 changes: 3 additions & 3 deletions src/Lucene.Net.Sandbox/Lucene.Net.Sandbox.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@
</PropertyGroup>

<Import Project="$(SolutionDir).build/nuget.props" />

<PropertyGroup>
<TargetFrameworks>net6.0;netstandard2.1;netstandard2.0;net462</TargetFrameworks>
<TargetFramework>net6.0</TargetFramework>

<AssemblyTitle>Lucene.Net.Sandbox</AssemblyTitle>
<PackageTags>$(PackageTags);sandbox</PackageTags>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
<NoWarn>$(NoWarn);1591;1573</NoWarn>
</PropertyGroup>



<ItemGroup>
<ProjectReference Include="..\Lucene.Net\Lucene.Net.csproj" />
Expand Down
8 changes: 4 additions & 4 deletions src/Lucene.Net/Lucene.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="$(SolutionDir).build/nuget.props" />

<PropertyGroup>
<TargetFrameworks>net6.0;netstandard2.1;netstandard2.0;net462</TargetFrameworks>
<TargetFramework>net6.0</TargetFramework>

<AssemblyTitle>Lucene.Net</AssemblyTitle>
<Description>Lucene.Net is a full-text search engine library capable of advanced text analysis, indexing, and searching. It can be used to easily add search capabilities to applications. Lucene.Net is a C# port of the popular Java Lucene search engine framework from The Apache Software Foundation, targeted at .NET Framework and .NET Core users.</Description>
Expand All @@ -36,7 +36,7 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>



<PropertyGroup Label="NuGet Package File Paths">
<LuceneNetDotNetDir>$(SolutionDir)src\dotnet\</LuceneNetDotNetDir>
Expand Down Expand Up @@ -99,7 +99,7 @@
<InternalsVisibleTo Include="Lucene.Net.Suggest" />

<InternalsVisibleTo Include="Lucene.Net.TestFramework" />

<InternalsVisibleTo Include="Lucene.Net.Tests._A-D" />
<InternalsVisibleTo Include="Lucene.Net.Tests._E-I" />
<InternalsVisibleTo Include="Lucene.Net.Tests._I-J" />
Expand Down