Skip to content

Commit

Permalink
update: Issue #240 updating the counter initial value from 0 to 1 - PR
Browse files Browse the repository at this point in the history
…#264  workflow bug
  • Loading branch information
FanJups authored Mar 5, 2024
1 parent 4756d13 commit aa804c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ public String nextName(@NonNull String type) {
}
}

return format("%s_%03d", identifier, counters.computeIfAbsent(type, __ -> new AtomicLong()).getAndIncrement());
return format("%s_%03d", identifier, counters.computeIfAbsent(type, __ -> new AtomicLong(1)).getAndIncrement());
}
}

0 comments on commit aa804c1

Please sign in to comment.