We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dddc48 commit 510f5abCopy full SHA for 510f5ab
java/ql/src/utils/FlowTestCaseSupportMethods.qll
@@ -371,6 +371,9 @@ private class MapGenValueMethod extends GenMethod {
371
override string getCall(string arg) { result = "Map.of(null, " + arg + ")" }
372
}
373
374
+/**
375
+ * Returns a cast to type `t` if `t` is not `java.lang.Object`, or an empty string otherwise.
376
+ */
377
string getConvertExprIfNotObject(RefType t) {
378
if t.hasQualifiedName("java.lang", "Object")
379
then result = ""
0 commit comments