Skip to content
vetkitChecksChangelogDocumentation

vetkit.java.quality.self-assignment

A variable is assigned to itself. This has no effect and usually indicates a missing this..

Last updated:

Suite: Code quality

java

A variable is assigned to itself. This has no effect and usually indicates a missing this..

Category: QUALITY · Engine rule severity: WARNING

How to fix it

Assign the intended value (in constructors and setters usually this.field = field).

Source: packages/engine/rules/quality/java.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.