diff --git a/java/ql/lib/semmle/code/java/Expr.qll b/java/ql/lib/semmle/code/java/Expr.qll index 9179801d743..785d5a72c0b 100644 --- a/java/ql/lib/semmle/code/java/Expr.qll +++ b/java/ql/lib/semmle/code/java/Expr.qll @@ -1247,7 +1247,8 @@ class ClassInstanceExpr extends Expr, ConstructorCall, @classinstancexpr { override string toString() { result = "new " + this.getConstructor().getName() + "(...)" or - not exists(this.getConstructor()) and result = "" + not exists(this.getConstructor()) and + result = "" } override string getAPrimaryQlClass() { result = "ClassInstanceExpr" }