Underscore used as identifier — CodeQL query help documentation
CodeQL query help documentation » CodeQL query help for Java and Kotlin » Underscore used as identifier ¶ ID: java/underscore-identifier Kind: problem Security severity: Severity: recommendation Precision: high Tags: - quality - maintainability - readability Query suites: - java-code-quality.qls - 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 ¶ Oracle JDK Documentation: Oracle JDK 9 Migration Guide . JDK Bug System: Disallow _ as a one-character identifier . © GitHub, Inc. Terms Privacy