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.

PR118149.aj 357B

1234567891011121314151617181920212223
  1. public aspect PR118149 {
  2. public pointcut pc1(String s)
  3. : execution(* C.*()) && args(s) && if(s != null);
  4. public pointcut pc2(String s)
  5. : execution(C.new(String,..))
  6. && args(s,..) && if(s != null);
  7. public pointcut pcOR(String s) : pc1(s) || pc2(s);
  8. before(String s) : pcOR(s) {
  9. }
  10. }
  11. class C {
  12. public C(String s, boolean b) {
  13. }
  14. }