importjava.util.*;publicaspectCodeFour{staticfinalclassFinalSet<T>extendsHashSet<T>{}before():execution(**(..))&&args(List<?>){}publicvoidm(FinalSet<String>ss){// List<?> l = (List<?>)ss; // cannot write this (FinalSet is final) so pointcut should not match}}