Skip to content

Commit 6699b03

Browse files
committed
Fixed error reporting in AnnotationDetector
#KT-14920 Fixed (cherry picked from commit 3647d53)
1 parent 10517c1 commit 6699b03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/lint/lint-checks/src/com/android/tools/klint/checks/AnnotationDetector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public boolean visitAnnotation(@NonNull UAnnotation annotation) {
248248
invalid = from > to;
249249
}
250250
if (invalid) {
251-
mContext.report(ANNOTATION_USAGE, annotation.getPsi(), mContext.getLocation(annotation.getPsi()),
251+
mContext.reportUast(ANNOTATION_USAGE, annotation, mContext.getUastLocation(annotation),
252252
"Invalid range: the `from` attribute must be less than "
253253
+ "the `to` attribute");
254254
}

0 commit comments

Comments
 (0)