Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f3a980d

Browse files
committed
Java: clarify predicate name in java/alert-suppression-annotations
1 parent d165ce9 commit f3a980d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

java/ql/src/AlertSuppressionAnnotations.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class SuppressionAnnotation extends SuppressWarningsAnnotation {
2828
string getText() { result = getASuppressedWarningLiteral().getValue() }
2929

3030
/** Gets the LGTM suppression annotation in this Java annotation. */
31-
string getAnnotation() { result = annotation }
31+
string getAnnotationText() { result = annotation }
3232

3333
private Annotation getASiblingAnnotation() {
3434
result = getAnnotatedElement().(Annotatable).getAnAnnotation() and
@@ -98,5 +98,5 @@ class SuppressionScope extends @annotation {
9898
from SuppressionAnnotation c
9999
select c, // suppression comment
100100
c.getText(), // text of suppression comment (excluding delimiters)
101-
c.getAnnotation(), // text of suppression annotation
101+
c.getAnnotationText(), // text of suppression annotation
102102
c.getScope() // scope of suppression

0 commit comments

Comments
 (0)