mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
Merge pull request #2671 from aschackmull/java/null-flow
Java: Allow null literals as sources in data flow.
This commit is contained in:
@@ -235,6 +235,8 @@ DataFlowType getErasedRepr(Type t) {
|
||||
then result.(BoxedType).getPrimitiveType().getName() = "boolean"
|
||||
else result = e
|
||||
)
|
||||
or
|
||||
t instanceof NullType and result instanceof TypeObject
|
||||
}
|
||||
|
||||
/** Gets a string representation of a type returned by `getErasedRepr`. */
|
||||
|
||||
Reference in New Issue
Block a user