Skip to content

Commit b44d612

Browse files
committed
update: Issue #240 updating the counter initial value from 0 to 1
1 parent 0afa81c commit b44d612

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsgenerator-core/src/main/java/com/osscameroon/jsgenerator/core/internal/TypeBasedVariableNameStrategy.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ public String nextName(@NonNull String type) {
3131
}
3232
}
3333

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

0 commit comments

Comments
 (0)