mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-89070 Support Guava @VisibleForTesting annotation
This commit is contained in:
@@ -71,9 +71,10 @@ public class TestOnlyInspection extends BaseJavaLocalInspectionTool {
|
||||
return isAnnotatedAsTestOnly(m);
|
||||
}
|
||||
|
||||
private boolean isAnnotatedAsTestOnly(@Nullable PsiMethod m) {
|
||||
private static boolean isAnnotatedAsTestOnly(@Nullable PsiMethod m) {
|
||||
if (m == null) return false;
|
||||
return AnnotationUtil.isAnnotated(m, AnnotationUtil.TEST_ONLY, false);
|
||||
return AnnotationUtil.isAnnotated(m, AnnotationUtil.TEST_ONLY, false) ||
|
||||
AnnotationUtil.isAnnotated(m, "com.google.common.annotations.VisibleForTesting", false);
|
||||
}
|
||||
|
||||
private boolean isInsideTestClass(PsiCallExpression e) {
|
||||
|
||||
Reference in New Issue
Block a user