Skip to content

Instantly share code, notes, and snippets.

@terabyte
Created May 24, 2018 23:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save terabyte/f19f0488dba2f03ce0cdbf4c53095e45 to your computer and use it in GitHub Desktop.
Save terabyte/f19f0488dba2f03ce0cdbf4c53095e45 to your computer and use it in GitHub Desktop.
{meme}Is this ok?
class A {
public void someMethod {
// ...
AtomicInteger count = new AtomicInteger();
someList.forEach((Object) o -> {
// ...
count.incrementAndGet();
// ...
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment