mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-14 14:11:27 +02:00
19 lines
348 B
Java
19 lines
348 B
Java
import org.aspectj.testing.Tester;
|
|
|
|
public class Flow {
|
|
public static void main(String[] args) {
|
|
Tester.checkEqual(m(), 42, "m()");
|
|
Tester.checkEqual(n(), 42, "n()");
|
|
}
|
|
|
|
static int m() {
|
|
if (true) return 42;
|
|
return 3;
|
|
}
|
|
|
|
static int n() {
|
|
{ if(true) return 42; }
|
|
return 4;
|
|
}
|
|
}
|