mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
CCE
This commit is contained in:
+4
-3
@@ -21,6 +21,7 @@
|
||||
package com.intellij.codeInspection.ex;
|
||||
|
||||
import com.intellij.codeInspection.CommonProblemDescriptor;
|
||||
import com.intellij.codeInspection.offlineViewer.OfflineInspectionRVContentProvider;
|
||||
import com.intellij.codeInspection.reference.RefEntity;
|
||||
import com.intellij.codeInspection.ui.*;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
@@ -234,9 +235,9 @@ public abstract class InspectionRVContentProvider {
|
||||
public boolean accept(Object node) {
|
||||
if (node instanceof RefElementNode) {
|
||||
final RefElementNode refElementNode = (RefElementNode)node;
|
||||
final Object finalContainerUserObject = finalContainer.getUserObject();
|
||||
if (finalContainerUserObject instanceof RefEntity &&
|
||||
finalContainer.areEqual(refElementNode.getUserObject(), finalContainerUserObject)) {
|
||||
final Object userObject = finalContainer.getUserObject();
|
||||
final Object object = refElementNode.getUserObject();
|
||||
if ((object == null || userObject.getClass().equals(object.getClass())) && finalContainer.areEqual(object, userObject)) {
|
||||
if (firstLevel.get()) {
|
||||
result.set(refElementNode);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user