aboutsummaryrefslogtreecommitdiffstats
path: root/tests/features164/declareMixin
diff options
context:
space:
mode:
Diffstat (limited to 'tests/features164/declareMixin')
-rw-r--r--tests/features164/declareMixin/CaseEConcurrent.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/features164/declareMixin/CaseEConcurrent.java b/tests/features164/declareMixin/CaseEConcurrent.java
index df1e13774..874f249d5 100644
--- a/tests/features164/declareMixin/CaseEConcurrent.java
+++ b/tests/features164/declareMixin/CaseEConcurrent.java
@@ -39,9 +39,11 @@ public class CaseEConcurrent {
// the byte code, e.g. with JDK tool 'javap -v'.
/*
public void doSomething() {
- synchronized (this) {
- if (id == null)
- id = "doing something";
+ if (id == null) {
+ synchronized (this) {
+ if (id == null)
+ id = "doing something";
+ }
}
callMe(id);
}