blob: 477eac5b0aa43f37a4ce0bee79683d96e2289980 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/**
* https://github.com/eclipse-aspectj/aspectj/issues/20
*/
public class ParenthesisedAJKeywords {
public static void main(String[] args) {
boolean before = true;
int after = 11;
String around = "around";
boolean aspect = true;
int pointcut = 22;
String declare = "declare";
String privileged = "privileged";
if ((before)) {
System.out.println(foo((before)));
switch ((after)) {
default: System.out.println("after");
}
System.out.println((around));
System.out.println(!(aspect) ? "no aspect" : "aspect");
switch ((pointcut)) {
case 22: System.out.println("pointcut"); break;
default: System.out.println("xxx");
}
System.out.println((declare));
System.out.println((privileged));
}
}
public static String foo(boolean before) {
return (before) ? "before" : "after";
}
}
|