Fixed error reporting in AnnotationDetector
#KT-14920 Fixed (cherry picked from commit 3647d53)
This commit is contained in:
@@ -248,7 +248,7 @@ public class AnnotationDetector extends Detector implements Detector.UastScanner
|
||||
invalid = from > to;
|
||||
}
|
||||
if (invalid) {
|
||||
mContext.report(ANNOTATION_USAGE, annotation.getPsi(), mContext.getLocation(annotation.getPsi()),
|
||||
mContext.reportUast(ANNOTATION_USAGE, annotation, mContext.getUastLocation(annotation),
|
||||
"Invalid range: the `from` attribute must be less than "
|
||||
+ "the `to` attribute");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user