aboutsummaryrefslogtreecommitdiff
path: root/test/lombok/resource/after
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2009-11-29 17:28:27 +0100
committerRoel Spilker <r.spilker@gmail.com>2009-11-29 17:28:27 +0100
commit78c1f1da1169522324b69079cb49a91b9e8d7b76 (patch)
treec42bba7c88e934632abdc1751893d56ac9b5583c /test/lombok/resource/after
parent3cf45e932b26f8e96caeecdae570cf7d9cd5e328 (diff)
downloadlombok-78c1f1da1169522324b69079cb49a91b9e8d7b76.tar.gz
lombok-78c1f1da1169522324b69079cb49a91b9e8d7b76.tar.bz2
lombok-78c1f1da1169522324b69079cb49a91b9e8d7b76.zip
Updated tests for Getter, Setter and Cleanup. Added Synchronized
Diffstat (limited to 'test/lombok/resource/after')
-rw-r--r--test/lombok/resource/after/CleanupPlain.java2
-rw-r--r--test/lombok/resource/after/GetterPlain.java2
-rw-r--r--test/lombok/resource/after/SetterPlain.java2
-rw-r--r--test/lombok/resource/after/SynchronizedPlain.java26
4 files changed, 29 insertions, 3 deletions
diff --git a/test/lombok/resource/after/CleanupPlain.java b/test/lombok/resource/after/CleanupPlain.java
index 25c66ced..35d51543 100644
--- a/test/lombok/resource/after/CleanupPlain.java
+++ b/test/lombok/resource/after/CleanupPlain.java
@@ -1,5 +1,5 @@
import java.io.*;
-class Cleanup {
+class CleanupPlain {
void test() throws Exception {
InputStream in = new FileInputStream("in");
try {
diff --git a/test/lombok/resource/after/GetterPlain.java b/test/lombok/resource/after/GetterPlain.java
index 04944df8..5e8cc965 100644
--- a/test/lombok/resource/after/GetterPlain.java
+++ b/test/lombok/resource/after/GetterPlain.java
@@ -1,4 +1,4 @@
-class Getter {
+class GetterPlain {
int i;
int foo;
public int getI() {
diff --git a/test/lombok/resource/after/SetterPlain.java b/test/lombok/resource/after/SetterPlain.java
index 2570365c..8faad0ec 100644
--- a/test/lombok/resource/after/SetterPlain.java
+++ b/test/lombok/resource/after/SetterPlain.java
@@ -1,4 +1,4 @@
-class Setter {
+class SetterPlain {
int i;
int foo;
public void setI(final int i) {
diff --git a/test/lombok/resource/after/SynchronizedPlain.java b/test/lombok/resource/after/SynchronizedPlain.java
new file mode 100644
index 00000000..2c168368
--- /dev/null
+++ b/test/lombok/resource/after/SynchronizedPlain.java
@@ -0,0 +1,26 @@
+class SynchronizedPlain1 {
+ private final Object $lock = new Object[0];
+ void test() {
+ synchronized ($lock) {
+ System.out.println("one");
+ }
+ }
+ void test2() {
+ synchronized ($lock) {
+ System.out.println("two");
+ }
+ }
+}
+class SynchronizedPlain2 {
+ private static final Object $LOCK = new Object[0];
+ static void test() {
+ synchronized ($LOCK) {
+ System.out.println("three");
+ }
+ }
+ static void test2() {
+ synchronized ($LOCK) {
+ System.out.println("four");
+ }
+ }
+} \ No newline at end of file