You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Flow.java 348B

123456789101112131415161718
  1. import org.aspectj.testing.Tester;
  2. public class Flow {
  3. public static void main(String[] args) {
  4. Tester.checkEqual(m(), 42, "m()");
  5. Tester.checkEqual(n(), 42, "n()");
  6. }
  7. static int m() {
  8. if (true) return 42;
  9. return 3;
  10. }
  11. static int n() {
  12. { if(true) return 42; }
  13. return 4;
  14. }
  15. }