You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
public class A {
|
|
private synchronized static void g(){
|
|
int x=1;
|
|
}
|
|
synchronized A f(){
|
|
return null;
|
|
}
|
|
public void foo(){
|
|
g(); synchronized(this)
|
|
{
|
|
g();
|
|
}
|
|
g(); synchronized(this)
|
|
{
|
|
synchronized(this)
|
|
{
|
|
synchronized(this)
|
|
{
|
|
g();
|
|
}
|
|
}
|
|
g();
|
|
}
|
|
synchronized(this)
|
|
{
|
|
g();
|
|
}
|
|
}
|
|
}
|