|
|
@ -82,14 +82,15 @@ public class SynchronizedBlock extends StructuredBlock { |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!isEntered) |
|
|
|
if (!isEntered) |
|
|
|
writer.println("MISSING MONITORENTER"); |
|
|
|
writer.println("MISSING MONITORENTER"); |
|
|
|
writer.println("synchronized (" |
|
|
|
writer.print("synchronized (" |
|
|
|
+ (object != null |
|
|
|
+ (object != null |
|
|
|
? object.simplify().toString() |
|
|
|
? object.simplify().toString() |
|
|
|
: local.getName()) + ") {"); |
|
|
|
: local.getName()) + ")"); |
|
|
|
|
|
|
|
writer.openBrace(); |
|
|
|
writer.tab(); |
|
|
|
writer.tab(); |
|
|
|
bodyBlock.dumpSource(writer); |
|
|
|
bodyBlock.dumpSource(writer); |
|
|
|
writer.untab(); |
|
|
|
writer.untab(); |
|
|
|
writer.println("}"); |
|
|
|
writer.closeBrace(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public boolean doTransformations() { |
|
|
|
public boolean doTransformations() { |
|
|
|