This is not a question about method synchronisation, only to statement synchronisation. Please do not incorrectly mark as duplicate.
Is this code:
synchronized (this) if (something)
{
somecode();
somemorecode();
}
equivalent to this code:
if (something)
{
synchronized (this)
{
somecode();
somemorecode();
}
}