Simplify
This commit is contained in:
parent
1ecc38b59d
commit
792399c91a
|
@ -273,7 +273,7 @@ public class FluentIterableTest {
|
|||
|
||||
@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);
|
||||
|
|
Loading…
Reference in New Issue