solven-eu / cleanthat

Github App opening automatically cleaning PR
56 stars 16 forks source link

UnnecessaryModifier removes non-redundant abstract, final modifiers from nested classes #842

Closed mches closed 1 week ago

mches commented 1 week ago

UnnecessaryModifier removes non-redundant abstract, final modifiers from nested classes

e.g.

public interface Parent {
  public static abstract class AbstractClass {}

  public static final class FinalClass extends AbstractClass {}
}

↓↓↓

public interface Parent {
  class AbstractClass {}

  class FinalClass extends AbstractClass {}
}

and

public @interface Parent {
  public static abstract class AbstractClass {}

  public static final class FinalClass extends AbstractClass {}
}

↓↓↓

public @interface Parent {
  class AbstractClass {}

  class FinalClass extends AbstractClass {}
}
blacelle commented 1 week 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.

mches commented 1 week ago

Thanks. I've already put it to use