Skip to content

Commit 204741c

Browse files
authored
Merge pull request #1144 from progressonderwijs/fons/fix_warns
Bumped dependencies and fixed some warnings
2 parents 025a4cd + 576c841 commit 204741c

File tree

12 files changed

+7
-19
lines changed

12 files changed

+7
-19
lines changed

src/ProgressOnderwijsUtils.Analyzers/MustUseExpressionResultAnalyzer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public sealed class MustUseExpressionResultAnalyzer : DiagnosticAnalyzer
2121
);
2222

2323
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
24-
=> ImmutableArray.Create(Rule);
24+
=> [Rule];
2525

2626
public override void Initialize(AnalysisContext context)
2727
{

src/ProgressOnderwijsUtils.Analyzers/RedundantAssertNotNullAnalyzer.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System.Collections.Generic;
21
using System.Collections.Immutable;
32
using Microsoft.CodeAnalysis;
43
using Microsoft.CodeAnalysis.CSharp;

src/ProgressOnderwijsUtils.AspNetCore/ModelStateFilter.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System;
21
using Microsoft.AspNetCore.Mvc.Filters;
32
using Microsoft.AspNetCore.Mvc;
43

src/ProgressOnderwijsUtils.SeleniumWebDriverPool/WebDriverPool.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Collections.Concurrent;
3-
using System.Collections.Generic;
43
using OpenQA.Selenium;
54
using OpenQA.Selenium.Chrome;
65
using OpenQA.Selenium.Remote;

src/ProgressOnderwijsUtils/Collections/ProjectingEqualityComparer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public sealed class ProjectingEqualityComparer<T>
1515
ProjectingEqualityComparer(EqualsComparer[] equality, HashComputation[] hash)
1616
=> (Equality, Hash) = (equality, hash);
1717

18-
public ProjectingEqualityComparer() : this(Array.Empty<EqualsComparer>(), Array.Empty<HashComputation>()) { }
18+
public ProjectingEqualityComparer() : this([], []) { }
1919

2020
public ProjectingEqualityComparer<T> AddKeyColumn<TPart>(Func<T, TPart> part, IEqualityComparer<TPart> partComparer)
2121
=> AddKey_WithoutColumn(([DisallowNull] a, [DisallowNull] b) => partComparer.Equals(part(a), part(b)), ([DisallowNull] o) => part(o) is { } nonNull ? partComparer.GetHashCode(nonNull) : 0);
@@ -72,10 +72,10 @@ int CombinedHash([DisallowNull] T obj)
7272
return new Equatable(CombinedEquality, CombinedHash);
7373
}
7474

75-
sealed record Equatable(EqualsComparer EqualsComparer, HashComputation Hash) : IEqualityComparer<T>
75+
sealed record Equatable(EqualsComparer Comparer, HashComputation Hash) : IEqualityComparer<T>
7676
{
7777
public bool Equals(T? x, T? y)
78-
=> x is null ? y is null : y is not null && EqualsComparer(x, y);
78+
=> x is null ? y is null : y is not null && Comparer(x, y);
7979

8080
public int GetHashCode(T obj)
8181
=> obj is null ? 0 : Hash(obj);

src/ProgressOnderwijsUtils/Data/ParameterizedSql.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ static bool ValidSubsequentIdentifierChar(char c) //https://learn.microsoft.com/
9696
/// </summary>
9797
public static ParameterizedSql UnescapedSqlIdentifier(string rawSqlString)
9898
{
99-
ArgumentNullException.ThrowIfNull(nameof(rawSqlString));
10099
AssertIsIdentifier(rawSqlString, 0);
101100
return new StringSqlFragment(rawSqlString).BuildableToQuery();
102101
}

src/ProgressOnderwijsUtils/Html/HtmlDirectory.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
51
namespace ProgressOnderwijsUtils.Html;
62

73
sealed class HtmlDirectory

src/ProgressOnderwijsUtils/Html/HtmlToStringExtensions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System;
21
using System.Buffers;
32
using System.IO.Pipelines;
43

src/ProgressOnderwijsUtils/ProgressOnderwijsUtils.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<Import Project="..\NugetPackagesCommon.props" />
33
<PropertyGroup Label="Configuration">
4-
<Version>105.5.0</Version>
5-
<PackageReleaseNotes>QualifiedNameSql property added to SequenceSqlDefinition</PackageReleaseNotes>
4+
<Version>105.5.1</Version>
5+
<PackageReleaseNotes>Bumped dependencies and fixed some warnings</PackageReleaseNotes>
66
<Title>ProgressOnderwijsUtils</Title>
77
<Description>Collection of utilities developed by ProgressOnderwijs</Description>
88
<PackageTags>ProgressOnderwijs</PackageTags>

test/ProgressOnderwijsUtils.Tests/Collections/SortedSet_MergeSetsTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System.Linq;
21
using IntSet = ProgressOnderwijsUtils.Collections.SortedSet<int, ProgressOnderwijsUtils.Tests.Collections.IntOrdering>;
32

43
namespace ProgressOnderwijsUtils.Tests.Collections;

0 commit comments

Comments
 (0)