CodeQL documentation

Underscore used as identifier

ID: java/underscore-identifier
Kind: problem
Security severity: 
Severity: recommendation
Precision: high
   - 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.


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


  • © GitHub, Inc.
  • Terms
  • Privacy