| 9 | } |
| 10 | |
| 11 | class Unsafe implements SharedArg { |
| 12 | private int i = 0; |
| 13 | @Override public int get() { return i++; } |
| 14 | } |
| 15 | |
| 16 | class Safe implements SharedArg { |
| 17 | private static AtomicInteger counter = |
nothing calls this directly
no outgoing calls
no test coverage detected