solven-eu / cleanthat

Github App opening automatically cleaning PR
64 stars 18 forks source link

UnnecessaryModifier misses the opportunity to remove redundant modifiers from nested annotations, enums #843

Closed mches closed 1 month ago

mches commented 1 month ago

UnnecessaryModifier misses the opportunity to remove redundant modifiers from nested annotations, enums

e.g.

public interface Parent {
  public static abstract @interface MyAnnotation {}

  public static enum MyEnum {}
}

and

public @interface Parent {
  public static abstract @interface MyAnnotation {}

  public static enum MyEnum {}
}
blacelle commented 1 month ago

Thanks for the report and the fix. This has been released in Cleanthat 1.22 ; it shall be available in m2central within minutes/hours.