From 060274c5f70c6858572c4093ed1e71244d47d409 Mon Sep 17 00:00:00 2001 From: "nikita.smirnov" Date: Thu, 14 Mar 2024 12:58:53 +0400 Subject: [PATCH] Fixed UUID generation for each event id --- README.md | 5 ++++- gradle.properties | 2 +- src/main/java/com/exactpro/th2/common/event/Event.java | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 11da3e2a..a4f60e0f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# th2 common library (Java) (5.9.1) +# th2 common library (Java) (5.9.2) ## Usage @@ -507,6 +507,9 @@ dependencies { ## Release notes +### 5.9.2-dev ++ Fixed UUID generation for each event id + ### 5.9.1-dev #### Updated: diff --git a/gradle.properties b/gradle.properties index 4ac4a7e3..b431f52a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -14,7 +14,7 @@ # limitations under the License. # -release_version=5.9.1 +release_version=5.9.2 description='th2 common library (Java)' vcs_url=https://github.com/th2-net/th2-common-j kapt.include.compile.classpath=false \ No newline at end of file diff --git a/src/main/java/com/exactpro/th2/common/event/Event.java b/src/main/java/com/exactpro/th2/common/event/Event.java index cfbdab11..989d6ea0 100644 --- a/src/main/java/com/exactpro/th2/common/event/Event.java +++ b/src/main/java/com/exactpro/th2/common/event/Event.java @@ -76,7 +76,7 @@ public class Event { // otherwise, type supported by JavaTimeModule will be serialized as array of date component .disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS) .setSerializationInclusion(NON_NULL)); - protected final String UUID = generateUUID(); + protected static final String UUID = generateUUID(); protected final AtomicLong ID_COUNTER = new AtomicLong(); protected final String id = UUID + '-' + ID_COUNTER.incrementAndGet();