blob: 821eb3827e50b426eb96d6628b32af4b935aae0e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import java.util.*;
public aspect CodeThree {
before(): execution(* CodeThree.*(..)) && args(List<Integer>) {} // yes
before(): execution(* CodeThree.*(..)) && args(ArrayList<Integer>) {} // yes - runtime check
before(): execution(* CodeThree.*(..)) && args(List<Number>) {} // no
before(): execution(* CodeThree.*(..)) && args(ArrayList<Number>) {} // no
before(): execution(* CodeThree.*(..)) && args(List<? extends Number>) {} // yes
before(): execution(* CodeThree.*(..)) && args(ArrayList<? extends Number>) {} // yes - runtime check
void m(List<Integer> li) {}
}
|