diff --git a/java/ql/lib/semmle/code/java/dataflow/TypeFlow.qll b/java/ql/lib/semmle/code/java/dataflow/TypeFlow.qll index 4096b83e5f1..5463faa4c87 100644 --- a/java/ql/lib/semmle/code/java/dataflow/TypeFlow.qll +++ b/java/ql/lib/semmle/code/java/dataflow/TypeFlow.qll @@ -23,7 +23,7 @@ private module Input implements TypeFlowInput { /** Gets `t` if it is a `RefType` or the boxed type if `t` is a primitive type. */ private RefType boxIfNeeded(J::Type t) { - t.(J::PrimitiveType).getBoxedType() = result or + t.(PrimitiveType).getBoxedType() = result or result = t }