mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-09-03 05:54:57 +02:00
15 lines
304 B
Java
15 lines
304 B
Java
import java.util.*;
|
|
|
|
public class Code {
|
|
public String getString() {
|
|
Optional<String> dummy = Optional.of("Just a dummy optional");
|
|
return dummy.orElseThrow(() -> {
|
|
return new RuntimeException();
|
|
});
|
|
}
|
|
}
|
|
|
|
aspect X {
|
|
before(): within(!X) {System.out.println(thisJoinPoint);}
|
|
}
|