Reports annotations with the SOURCE or CLASS retention policy when they are supposed to be used by JUnit 5.

Note that if the retention policy is not specified, then the default retention policy CLASS is used. Such annotations are not available at runtime and most probably their retention policy should be fixed to be accessible through reflection.

Example:


  @Testable
  public @interface UnitTest {}

After the quick-fix is applied:


  @Retention(RetentionPolicy.RUNTIME)
  @Testable
  public @interface UnitTest {}