Skip to content

Commit 81f4822

Browse files
committed
Java: Fix performance with future optimiser by caching a predicate
1 parent be1d4c0 commit 81f4822

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

java/ql/lib/semmle/code/java/Annotation.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ class Annotatable extends Element {
110110
}
111111

112112
/** Gets an annotation that applies to this element. */
113+
cached
113114
Annotation getAnAnnotation() { result.getAnnotatedElement() = this }
114115

115116
/**

0 commit comments

Comments
 (0)