Skip to content

Commit 49f8f46

Browse files
committed
Java: Cache params string computation.
1 parent cb0a567 commit 49f8f46

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

java/ql/lib/semmle/code/java/dataflow/ExternalFlow.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,7 @@ private string paramsStringPart(Callable c, int i) {
638638
* Returns the empty string if the callable has no parameters.
639639
* Parameter types are represented by their type erasure.
640640
*/
641+
cached
641642
string paramsString(Callable c) { result = concat(int i | | paramsStringPart(c, i) order by i) }
642643

643644
private Element interpretElement0(

0 commit comments

Comments
 (0)