Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 237d4ba

Browse files
Update StatisticsResource.java
1 parent 88f326b commit 237d4ba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎ddd/src/main/kotlin/com/github/daggerok/ddd/events/StatisticsResource.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ private void updateStatisticsFor(Customer newCustomer) {
4646
String name = newCustomer.getName();
4747
statistics.putIfAbsent(name, new AtomicLong(0));
4848
AtomicLong counter = statistics.get(name);
49-
counter.incrementAndGet();
50-
statistics.put(name, counter);
49+
statistics.put(name, counter.incrementAndGet());
5150
}
5251
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /