Skip to content

Commit 510f5ab

Browse files
committed
Add missing qldoc
1 parent 5dddc48 commit 510f5ab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

java/ql/src/utils/FlowTestCaseSupportMethods.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,9 @@ private class MapGenValueMethod extends GenMethod {
371371
override string getCall(string arg) { result = "Map.of(null, " + arg + ")" }
372372
}
373373

374+
/**
375+
* Returns a cast to type `t` if `t` is not `java.lang.Object`, or an empty string otherwise.
376+
*/
374377
string getConvertExprIfNotObject(RefType t) {
375378
if t.hasQualifiedName("java.lang", "Object")
376379
then result = ""

0 commit comments

Comments
 (0)