blob: 0ad1743189662d400c3730e9659345e65cdb7169 [file] [log] [blame]
class A {
public void foo(int p) {
System.out.println("p = [" + p + "]");
}
public synchronized void foo(){
foo(calcSomething());
}
// this method should be invoked under synchronized block!
private int calcSomething() { return 0; }
}