mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Java: Fix performance with future optimiser by caching a predicate
This commit is contained in:
@@ -110,6 +110,7 @@ class Annotatable extends Element {
|
||||
}
|
||||
|
||||
/** Gets an annotation that applies to this element. */
|
||||
cached
|
||||
Annotation getAnAnnotation() { result.getAnnotatedElement() = this }
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user