mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Java: Add test for NullLiteral
This commit is contained in:
@@ -734,6 +734,7 @@ class StringLiteral extends Literal, @stringliteral {
|
||||
|
||||
/** The null literal, written `null`. */
|
||||
class NullLiteral extends Literal, @nullliteral {
|
||||
// Override these predicates because the inherited ones have no result
|
||||
override string getLiteral() { result = "null" }
|
||||
|
||||
override string getValue() { result = "null" }
|
||||
|
||||
Reference in New Issue
Block a user