Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Feb 9, 2024
1 parent 1ecc38b commit 792399c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ public void testFilter() {

@Test
public void testForEach() {
final AtomicInteger sum = new AtomicInteger(0);
final AtomicInteger sum = new AtomicInteger();
final Closure<Integer> closure = sum::addAndGet;

FluentIterable.of(iterableA).forEach(closure);
Expand Down

0 comments on commit 792399c

Please sign in to comment.