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.

A.java 361B

123456789101112131415
  1. import org.aspectj.lang.annotation.Aspect;
  2. import org.aspectj.lang.annotation.DeclareWarning;
  3. import org.aspectj.lang.annotation.DeclareError;
  4. @Aspect
  5. public class A {
  6. @DeclareWarning("execution(* C.warningMethod())")
  7. static final String warning = "warning";
  8. @DeclareError("execution(* C.badMethod())")
  9. static final String error = "error";
  10. }