mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
DfaInstanceofValue, ExpressionTypeMemoryState: cosmetic
This commit is contained in:
+1
-4
@@ -91,10 +91,7 @@ public class ExpressionTypeMemoryState extends DfaMemoryStateImpl {
|
||||
if (!super.equals(o)) return false;
|
||||
|
||||
ExpressionTypeMemoryState that = (ExpressionTypeMemoryState)o;
|
||||
|
||||
if (!myStates.equals(that.myStates)) return false;
|
||||
|
||||
return true;
|
||||
return myStates.equals(that.myStates);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+5
-6
@@ -18,28 +18,27 @@ package com.intellij.codeInspection.dataFlow.value;
|
||||
import com.intellij.psi.PsiExpression;
|
||||
import com.intellij.psi.PsiType;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author peter
|
||||
*/
|
||||
public class DfaInstanceofValue extends DfaValue {
|
||||
private final PsiExpression myExpression;
|
||||
private final PsiType myCastType;
|
||||
private final @NotNull PsiExpression myExpression;
|
||||
private final @NotNull PsiType myCastType;
|
||||
private final boolean myNegated;
|
||||
|
||||
public DfaInstanceofValue(DfaValueFactory factory, PsiExpression expression, PsiType castType) {
|
||||
public DfaInstanceofValue(DfaValueFactory factory, @NotNull PsiExpression expression, @NotNull PsiType castType) {
|
||||
this(factory, expression, castType, false);
|
||||
}
|
||||
|
||||
public DfaInstanceofValue(DfaValueFactory factory, PsiExpression expression, PsiType castType, boolean negated) {
|
||||
public DfaInstanceofValue(DfaValueFactory factory, @NotNull PsiExpression expression, @NotNull PsiType castType, boolean negated) {
|
||||
super(factory);
|
||||
myExpression = expression;
|
||||
myCastType = castType;
|
||||
myNegated = negated;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@NotNull
|
||||
public PsiExpression getExpression() {
|
||||
return myExpression;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user