unused declaration: fix enum constructor references IDEA-199293

This commit is contained in:
Dmitry Batkovich
2018-09-24 19:26:31 +03:00
parent c3bd644245
commit 1ceb3aaebe
4 changed files with 27 additions and 0 deletions

View File

@@ -40,6 +40,12 @@ public class RefJavaUtilImpl extends RefJavaUtil {
for (UElement element : findIn) {
if (element == null) continue;
element.accept(new AbstractUastVisitor() {
@Override
public boolean visitEnumConstant(@NotNull UEnumConstant node) {
processNewLikeConstruct(node.resolve(), node.getValueArguments());
return false;
}
@Override
public boolean visitAnnotation(@NotNull UAnnotation node) {
PsiClass javaClass = node.resolve();