mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
[global inspections] remove unneeded assertion
GitOrigin-RevId: 1b4f1b7ea7679d1adcf43f3bac15d2d3296c2e77
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8e71b6ca0d
commit
5feb0b5a8b
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.codeInspection.reference;
|
||||
|
||||
import com.intellij.analysis.AnalysisBundle;
|
||||
@@ -307,7 +307,6 @@ public abstract class RefJavaElementImpl extends RefElementImpl implements RefJa
|
||||
}
|
||||
|
||||
private void markEnumUsedIfValuesMethod(PsiMethod psiWhat, UExpression expression) {
|
||||
LOG.assertTrue(isInitialized());
|
||||
//TODO support kotlin enums
|
||||
final PsiClass containingClass = psiWhat.getContainingClass();
|
||||
if (containingClass != null && containingClass.isEnum() && "values".equals(psiWhat.getName())) {
|
||||
|
||||
Reference in New Issue
Block a user