mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 19:28:23 +07:00
[global inspections]: CCE
kotlin enum constant with anonymous class source corresponds to the field, not class (which is probably wrong) but here the cast is redundant anyway GitOrigin-RevId: cf66ff194853f4d28c4987b12e8016112da199e3
This commit is contained in:
committed by
intellij-monorepo-bot
parent
90a56b75d4
commit
644bbb10dd
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
|
||||
package com.intellij.codeInspection.reference;
|
||||
|
||||
@@ -290,8 +290,9 @@ public class RefJavaUtilImpl extends RefJavaUtil {
|
||||
for (UTypeReferenceExpression type : uClass.getUastSuperTypes()) {
|
||||
type.accept(this);
|
||||
}
|
||||
RefClassImpl refClass = (RefClassImpl)refFrom.getRefManager().getReference(uClass.getSourcePsi());
|
||||
refFrom.addReference(refClass, uClass.getSourcePsi(), decl, false, true, null);
|
||||
PsiElement sourcePsi = uClass.getSourcePsi();
|
||||
RefElement refWhat = refFrom.getRefManager().getReference(sourcePsi);
|
||||
refFrom.addReference(refWhat, sourcePsi, decl, false, true, null);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user