标签: java multithreading
@GuardedBy() 注释和 synchronized 块是否提供一些保护?
@GuardedBy()
synchronized
我的意思是,这两个函数会同步同步吗?
class FooBar { @GuardedBy("this") public void foo() { ... } public synchronized void bar() { ... } }