Skip to content

Commit

Permalink
Fixed UUID generation for each event id
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita-Smirnov-Exactpro committed Mar 14, 2024
1 parent fabdb39 commit 060274c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# th2 common library (Java) (5.9.1)
# th2 common library (Java) (5.9.2)

## Usage

Expand Down Expand Up @@ -507,6 +507,9 @@ dependencies {

## Release notes

### 5.9.2-dev
+ Fixed UUID generation for each event id

### 5.9.1-dev

#### Updated:
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/main/java/com/exactpro/th2/common/event/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 060274c

Please sign in to comment.