This is an automated email from the ASF dual-hosted git repository.
blankensteiner pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-dotpulsar.git
The following commit(s) were added to refs/heads/master by this push:
new 99d26b4 Make ready for release 2.8.0
99d26b4 is described below
commit 99d26b46ce7febb8c64f9c0cabfca227d008ce9b
Author: Daniel Blankensteiner <[email protected]>
AuthorDate: Fri Jan 20 09:49:46 2023 +0100
Make ready for release 2.8.0
---
CHANGELOG.md | 2 +-
src/DotPulsar/DotPulsar.csproj | 4 ++--
.../Internal/AsyncQueueWithCursorTests.cs | 18 +++++-------------
3 files changed, 8 insertions(+), 16 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c4b9f00..eb4e77a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this
file.
The format is based on [Keep a
Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
-## [Unreleased]
+## [2.8.0] - 2023-01-20
### Added
diff --git a/src/DotPulsar/DotPulsar.csproj b/src/DotPulsar/DotPulsar.csproj
index 6bebccf..af3a1c8 100644
--- a/src/DotPulsar/DotPulsar.csproj
+++ b/src/DotPulsar/DotPulsar.csproj
@@ -1,8 +1,8 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;netstandard2.1;net6.0;net7.0</TargetFrameworks>
- <Version>2.7.0</Version>
+ <Version>2.8.0</Version>
<AssemblyVersion>$(Version)</AssemblyVersion>
<FileVersion>$(Version)</FileVersion>
<Authors>ApachePulsar,DanskeCommodities,dblank</Authors>
diff --git a/tests/DotPulsar.Tests/Internal/AsyncQueueWithCursorTests.cs
b/tests/DotPulsar.Tests/Internal/AsyncQueueWithCursorTests.cs
index 61994d7..7a1ac38 100644
--- a/tests/DotPulsar.Tests/Internal/AsyncQueueWithCursorTests.cs
+++ b/tests/DotPulsar.Tests/Internal/AsyncQueueWithCursorTests.cs
@@ -431,10 +431,7 @@ public class AsyncQueueWithCursorTests
{
private int Number { get; }
- public QueueItem(int number)
- {
- Number = number;
- }
+ public QueueItem(int number) => Number = number;
public void Dispose() { }
@@ -444,14 +441,9 @@ public class AsyncQueueWithCursorTests
if (ReferenceEquals(this, other)) return true;
return Number == other.Number;
}
- public override bool Equals(object? obj)
- {
- if (ReferenceEquals(null, obj)) return false;
- if (ReferenceEquals(this, obj)) return true;
- if (obj.GetType() != this.GetType()) return false;
- return Equals((QueueItem) obj);
- }
- public override int GetHashCode() =>
- Number;
+
+ public override bool Equals(object? obj) => obj is QueueItem qi &&
Equals(qi);
+
+ public override int GetHashCode() => Number;
}
}