mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-28 05:55:04 +02:00
14 lines
211 B
Java
14 lines
211 B
Java
|
// Exploring synchronization
|
||
|
|
||
|
public aspect Parsing1 {
|
||
|
|
||
|
before(): lock() { }
|
||
|
|
||
|
public static void main(String[] args) {
|
||
|
staticM();
|
||
|
}
|
||
|
|
||
|
public static void staticM() {
|
||
|
// synchronized (String.class) {}
|
||
|
}
|
||
|
}
|