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.

CodeOne.java 371B

12345678910111213141516
  1. import java.util.*;
  2. public aspect CodeOne {
  3. before(): execution(* CodeOne.*(..)) && args(List<Number>) {}
  4. before(): execution(* CodeOne.*(..)) && args(List<Integer>) {}
  5. void m(List<Integer> li) {}
  6. public void callm() {
  7. List<Number> ln = new ArrayList<Number>();
  8. List<Integer> li = new ArrayList<Integer>();
  9. // m(ln);//not allowed
  10. m(li);
  11. }
  12. }