CodeQL documentation

Underscore used as identifier

ID: java/underscore-identifier
Kind: problem
Severity: recommendation
Precision: high
Tags:
   - maintainability
Query suites:
   - java-security-and-quality.qls

Click to see the query in the CodeQL repository

The underscore character is a reserved keyword in Java 9 and therefore disallowed as a one-character identifier.

Recommendation

Rename any identifiers that consist of a one-character underscore.

References