A type is written with its package where its simple name already refers to it

tx0/java:qualified-type-namestrictwarningstyle/namingdepth faststyle

What it finds

java.util.List in a file that imports java.util.List, or java.lang.String anywhere, says the same as the simple name with more to read.

Reported is a type written with its package when a single-type import names the same class, or when the class is in java.lang and the file neither declares nor imports another type of that simple name. The fix writes the simple name: safely after an import, which settles what the name means, and as a suggestion for java.lang, since a class of the same name in the file's own package would win.

From the rule's source, qualified_type_name.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:qualified-type-name" = "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:qualified-type-name] reason="..."

tx0 explain tx0/java:qualified-type-name shows the same in the terminal. Found a false positive? Report it.