Fixed error reporting in AnnotationDetector

#KT-14920 Fixed

(cherry picked from commit 3647d53)
This commit is contained in:
Vyacheslav Gerasimov
2017-01-16 15:06:18 +03:00
parent 10517c16ee
commit 6699b03c0b
@@ -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");
}