Skip to content

Commit

Permalink
update: Issue #240 updating the counter initial value from 0 to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
FanJups committed Mar 5, 2024
1 parent 0afa81c commit b44d612
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 b44d612

Please sign in to comment.