From 34f38dad212b5b89a1e548abc5f78d3f0469e2d6 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Sun, 29 Nov 2009 23:25:53 +0100 Subject: More tests for Synchronized --- test/lombok/resource/before/SynchronizedName.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/lombok/resource/before/SynchronizedName.java (limited to 'test/lombok/resource/before/SynchronizedName.java') diff --git a/test/lombok/resource/before/SynchronizedName.java b/test/lombok/resource/before/SynchronizedName.java new file mode 100644 index 00000000..3aaec705 --- /dev/null +++ b/test/lombok/resource/before/SynchronizedName.java @@ -0,0 +1,18 @@ +//ignore +class SynchronizedName { + private Object read = new Object(); + private static Object READ = new Object(); + + @lombok.Synchronized("read") void test1() { + System.out.println("one"); + } + @lombok.Synchronized("write") void test2() { + System.out.println("two"); + } + @lombok.Synchronized("read") static void test3() { + System.out.println("three"); + } + @lombok.Synchronized("READ") void test4() { + System.out.println("four"); + } +} -- cgit