标签: java concurrency
private void doSomething(final Queue<Integer> stuff) { synchronized(stuff){ Integer stuffId = stuff.poll(); } etc
它特别让我担心它被注释了 @SuppressWarnings( “SynchronizationOnLocalVariableOrMethodParameter”)