aboutsummaryrefslogtreecommitdiff
path: root/test/lombok/resource/after/SynchronizedPlain.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-11-29 19:46:47 +0100
committerReinier Zwitserloot <reinier@tipit.to>2009-11-29 19:46:47 +0100
commit64f47685ca8fee174d87688e8c5d33de4c153c9b (patch)
treeab6c6fcfdbf648801256f78db829808eb1bb965d /test/lombok/resource/after/SynchronizedPlain.java
parent96b7c8ed471745366378d5b7cec8890d16532dee (diff)
parenteb1a51588779ca55c9855651f9eefed9459f0874 (diff)
downloadlombok-64f47685ca8fee174d87688e8c5d33de4c153c9b.tar.gz
lombok-64f47685ca8fee174d87688e8c5d33de4c153c9b.tar.bz2
lombok-64f47685ca8fee174d87688e8c5d33de4c153c9b.zip
Merge branch 'master' into netbeans
Diffstat (limited to 'test/lombok/resource/after/SynchronizedPlain.java')
-rw-r--r--test/lombok/resource/after/SynchronizedPlain.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/lombok/resource/after/SynchronizedPlain.java b/test/lombok/resource/after/SynchronizedPlain.java
new file mode 100644
index 00000000..fcbe03f2
--- /dev/null
+++ b/test/lombok/resource/after/SynchronizedPlain.java
@@ -0,0 +1,26 @@
+class SynchronizedPlain1 {
+ void test() {
+ synchronized ($lock) {
+ System.out.println("one");
+ }
+ }
+ void test2() {
+ synchronized ($lock) {
+ System.out.println("two");
+ }
+ }
+ private final java.lang.Object $lock = new java.lang.Object[0];
+}
+class SynchronizedPlain2 {
+ static void test() {
+ synchronized ($LOCK) {
+ System.out.println("three");
+ }
+ }
+ static void test2() {
+ synchronized ($LOCK) {
+ System.out.println("four");
+ }
+ }
+ private static final java.lang.Object $LOCK = new java.lang.Object[0];
+} \ No newline at end of file