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.

SwitchCaseWith_Integer_MAX_VALUE.java 411B

1234567891011121314151617181920
  1. public class SwitchCaseWith_Integer_MAX_VALUE {
  2. public static void main(String[] args) {
  3. System.out.println(switchTest(Integer.MAX_VALUE));
  4. }
  5. static String switchTest(int i) {
  6. switch (i) {
  7. case Integer.MAX_VALUE:
  8. return "CASE_1";
  9. default:
  10. return "";
  11. }
  12. }
  13. }
  14. aspect MyAspect {
  15. before() : execution(* switchTest(*)) {
  16. System.out.println(thisJoinPoint);
  17. }
  18. }