mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-27 18:23:24 +00:00
17 lines
362 B
Java
17 lines
362 B
Java
import lombok.Synchronized;
|
|
class SynchronizedPlain1 {
|
|
@lombok.Synchronized void test() {
|
|
System.out.println("one");
|
|
}
|
|
@Synchronized void test2() {
|
|
System.out.println("two");
|
|
}
|
|
}
|
|
class SynchronizedPlain2 {
|
|
@lombok.Synchronized static void test() {
|
|
System.out.println("three");
|
|
}
|
|
@Synchronized static void test2() {
|
|
System.out.println("four");
|
|
}
|
|
} |