Closed mches closed 1 week ago
UnnecessaryModifier removes non-redundant abstract, final modifiers from nested classes
UnnecessaryModifier
abstract
final
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 {} }
Thanks for the report and the fix. This has been released in Cleanthat 1.22 ; it shall be available in m2central within minutes/hours.
Thanks. I've already put it to use
UnnecessaryModifier
removes non-redundantabstract
,final
modifiers from nested classese.g.
↓↓↓
and
↓↓↓