An abstract class declares again an abstract method of an interface of this file that it implements

tx0/java:redundant-abstract-methodstrictwarningstyle/conventionsdepth faststyle

What it finds

An abstract class inherits the abstract methods of the interfaces it implements. A declaration that repeats one, with the same name and parameters, adds nothing but a second place to keep in step.

Reported is an abstract method without annotations of an abstract class that has the same name and number of parameters as a method of an interface declared in this file that the class implements directly.

From the rule's source, redundant_abstract_method.rs.

Example from the rule's tests
interface Shape {  double area();}abstract class Base implements Shape {  public abstract double area();tx0 reports: repeats one of an implemented interface  abstract String name();}
Highlighted lines are the ones tx0 reports, with its message under each; the other lines are left alone.

Turn it on, off or suppress it

The rule runs from the strict tier up. To turn it on in a lower tier, give it a level in tx0.toml:

tx0.toml
[rules]
"tx0/java:redundant-abstract-method" = "warning"

To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:

// tx0: ignore[tx0/java:redundant-abstract-method] reason="..."

tx0 explain tx0/java:redundant-abstract-method shows the same in the terminal. Found a false positive? Report it.