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.

NonNullAssertionForcer.java 266B

1234567891011121314151617
  1. import java.lang.annotation.*;
  2. public aspect NonNullAssertionForcer {
  3. class C {
  4. public void foo(@NonNull String s) {}
  5. }
  6. before(): execution(* *(@NonNull (*))) {
  7. System.out.println("Bar");
  8. }
  9. @Target(ElementType.PARAMETER)
  10. @interface NonNull {
  11. }
  12. }