您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Iffy2.java 509B

12345678910111213141516171819202122232425
  1. import java.util.*;
  2. import org.aspectj.lang.annotation.*;
  3. @Aspect
  4. class Iffy2 {
  5. @Before("execution(!void *(..))")
  6. public void advice1() {}
  7. @Before("execution(!void[] *(..))")
  8. public void advice2() {}
  9. @Before("execution(!void *(..))")
  10. public void advice3() {}
  11. @Before("execution(*..Collection[] *(..))")
  12. public void advice4() {}
  13. @Before("execution(java.util.Collection<?>[] *(..))")
  14. public void advice5() {}
  15. public Collection<?>[] getCollectionArray() {
  16. return null;
  17. }
  18. }