MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / Unsafe

Class Unsafe

concurrent/SharedConstructorArgument.java:11–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9}
10
11class Unsafe implements SharedArg {
12 private int i = 0;
13 @Override public int get() { return i++; }
14}
15
16class Safe implements SharedArg {
17 private static AtomicInteger counter =

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected