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.

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. }