Skip to content

Commit

Permalink
Address net9 warnings (#695)
Browse files Browse the repository at this point in the history
  • Loading branch information
viceroypenguin authored Oct 9, 2024
1 parent af760fb commit 74dfa57
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions Source/SuperLinq.Async/Catch.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace SuperLinq.Async;
namespace SuperLinq.Async;

public static partial class AsyncSuperEnumerable
{
Expand Down Expand Up @@ -74,7 +74,7 @@ public static IAsyncEnumerable<TSource> Catch<TSource>(this IAsyncEnumerable<TSo
ArgumentNullException.ThrowIfNull(first);
ArgumentNullException.ThrowIfNull(second);

return Catch(new[] { first, second });
return Catch([first, second]);
}

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions Source/SuperLinq.Async/OnErrorResumeNext.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace SuperLinq.Async;
namespace SuperLinq.Async;

public static partial class AsyncSuperEnumerable
{
Expand All @@ -16,7 +16,7 @@ public static IAsyncEnumerable<TSource> OnErrorResumeNext<TSource>(this IAsyncEn
ArgumentNullException.ThrowIfNull(first);
ArgumentNullException.ThrowIfNull(second);

return OnErrorResumeNext(new[] { first, second });
return OnErrorResumeNext([first, second]);
}

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions Source/SuperLinq/Catch.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace SuperLinq;
namespace SuperLinq;

public static partial class SuperEnumerable
{
Expand Down Expand Up @@ -97,7 +97,7 @@ public static IEnumerable<TSource> Catch<TSource>(this IEnumerable<TSource> firs
ArgumentNullException.ThrowIfNull(first);
ArgumentNullException.ThrowIfNull(second);

return Catch(new[] { first, second });
return Catch([first, second]);
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Source/SuperLinq/OnErrorResumeNext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static IEnumerable<TSource> OnErrorResumeNext<TSource>(this IEnumerable<T
ArgumentNullException.ThrowIfNull(first);
ArgumentNullException.ThrowIfNull(second);

return OnErrorResumeNext(new[] { first, second });
return OnErrorResumeNext([first, second]);
}

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions Tests/SuperLinq.Async.Test/FullOuterJoinTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using static Test.Async.JoinOperation;
using static Test.Async.JoinOperation;

namespace Test.Async;

Expand All @@ -22,7 +22,7 @@ public sealed class FullOuterJoinTest
};

public static IEnumerable<object[]> GetFullOuterJoins() =>
new[] { Hash, Merge }.Cartesian(new[] { false, true }, (x, y) => new object[] { x, y });
new[] { Hash, Merge }.Cartesian([false, true], (x, y) => new object[] { x, y });

[Theory, MemberData(nameof(GetFullOuterJoins))]
public void FullOuterJoinIsLazy(JoinOperation op, bool passProjectors)
Expand Down
4 changes: 2 additions & 2 deletions Tests/SuperLinq.Async.Test/InnerJoinTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using static Test.Async.JoinOperation;
using static Test.Async.JoinOperation;

namespace Test.Async;

Expand All @@ -22,7 +22,7 @@ public sealed class InnerJoinTest
};

public static IEnumerable<object[]> GetInnerJoins() =>
new[] { Loop, Hash, Merge }.Cartesian(new[] { false, true }, (x, y) => new object[] { x, y });
new[] { Loop, Hash, Merge }.Cartesian([false, true], (x, y) => new object[] { x, y });

[Theory, MemberData(nameof(GetInnerJoins))]
public void InnerJoinIsLazy(JoinOperation op, bool passProjectors)
Expand Down
4 changes: 2 additions & 2 deletions Tests/SuperLinq.Async.Test/LeftOuterJoin.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using static Test.Async.JoinOperation;
using static Test.Async.JoinOperation;

namespace Test.Async;

Expand All @@ -22,7 +22,7 @@ public sealed class LeftOuterJoinTest
};

public static IEnumerable<object[]> GetLeftOuterJoins() =>
new[] { Loop, Hash, Merge }.Cartesian(new[] { false, true }, (x, y) => new object[] { x, y });
new[] { Loop, Hash, Merge }.Cartesian([false, true], (x, y) => new object[] { x, y });

[Theory, MemberData(nameof(GetLeftOuterJoins))]
public void LeftOuterJoinIsLazy(JoinOperation op, bool passProjectors)
Expand Down
4 changes: 2 additions & 2 deletions Tests/SuperLinq.Async.Test/RightOuterJoin.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using static Test.Async.JoinOperation;
using static Test.Async.JoinOperation;

namespace Test.Async;

Expand All @@ -20,7 +20,7 @@ public sealed class RightOuterJoinTest
};

public static IEnumerable<object[]> GetRightOuterJoins() =>
new[] { Hash, Merge }.Cartesian(new[] { false, true }, (x, y) => new object[] { x, y });
new[] { Hash, Merge }.Cartesian([false, true], (x, y) => new object[] { x, y });

[Theory, MemberData(nameof(GetRightOuterJoins))]
public void RightOuterJoinIsLazy(JoinOperation op, bool passProjectors)
Expand Down
4 changes: 2 additions & 2 deletions Tests/SuperLinq.Test/FullOuterJoinTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using static Test.JoinOperation;
using static Test.JoinOperation;

namespace Test;

Expand All @@ -22,7 +22,7 @@ public sealed class FullOuterJoinTest
};

public static IEnumerable<object[]> GetFullOuterJoins() =>
new[] { Hash, Merge }.Cartesian(new[] { false, true }, (x, y) => new object[] { x, y });
new[] { Hash, Merge }.Cartesian([false, true], (x, y) => new object[] { x, y });

[Theory, MemberData(nameof(GetFullOuterJoins))]
public void FullOuterJoinIsLazy(JoinOperation op, bool passProjectors)
Expand Down
4 changes: 2 additions & 2 deletions Tests/SuperLinq.Test/InnerJoinTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using static Test.JoinOperation;
using static Test.JoinOperation;

namespace Test;

Expand All @@ -22,7 +22,7 @@ public sealed class InnerJoinTest
};

public static IEnumerable<object[]> GetInnerJoins() =>
new[] { Loop, Hash, Merge }.Cartesian(new[] { false, true }, (x, y) => new object[] { x, y });
new[] { Loop, Hash, Merge }.Cartesian([false, true], (x, y) => new object[] { x, y });

[Theory, MemberData(nameof(GetInnerJoins))]
public void InnerJoinIsLazy(JoinOperation op, bool passProjectors)
Expand Down
4 changes: 2 additions & 2 deletions Tests/SuperLinq.Test/LeftOuterJoin.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using static Test.JoinOperation;
using static Test.JoinOperation;

namespace Test;

Expand All @@ -22,7 +22,7 @@ public sealed class LeftOuterJoinTest
};

public static IEnumerable<object[]> GetLeftOuterJoins() =>
new[] { Loop, Hash, Merge }.Cartesian(new[] { false, true }, (x, y) => new object[] { x, y });
new[] { Loop, Hash, Merge }.Cartesian([false, true], (x, y) => new object[] { x, y });

[Theory, MemberData(nameof(GetLeftOuterJoins))]
public void LeftOuterJoinIsLazy(JoinOperation op, bool passProjectors)
Expand Down
4 changes: 2 additions & 2 deletions Tests/SuperLinq.Test/RightOuterJoin.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using static Test.JoinOperation;
using static Test.JoinOperation;

namespace Test;

Expand All @@ -20,7 +20,7 @@ public sealed class RightOuterJoinTest
};

public static IEnumerable<object[]> GetRightOuterJoins() =>
new[] { Hash, Merge }.Cartesian(new[] { false, true }, (x, y) => new object[] { x, y });
new[] { Hash, Merge }.Cartesian([false, true], (x, y) => new object[] { x, y });

[Theory, MemberData(nameof(GetRightOuterJoins))]
public void RightOuterJoinIsLazy(JoinOperation op, bool passProjectors)
Expand Down

0 comments on commit 74dfa57

Please sign in to comment.