A method overrides another only to call it with the same arguments

tx0/java:pass-through-overridestrictwarningsmell

What it finds

An override whose body is return super.save(item); with its own parameters does what the inherited method does already. It adds a method to read and keep in step with the parent, and nothing else.

Reported is a method marked @Override without other annotations or synchronized, whose body is a single call of the same method on super with its own parameters in order.

From the rule's source, pass_through_override.rs.

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:pass-through-override" = "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:pass-through-override] reason="..."

tx0 explain tx0/java:pass-through-override shows the same in the terminal. Found a false positive? Report it.