DfaInstanceofValue, ExpressionTypeMemoryState: cosmetic

This commit is contained in:
Tagir Valeev
2017-11-20 16:11:25 +07:00
parent 2ca83a301a
commit ddcf5545d2
2 changed files with 6 additions and 10 deletions
@@ -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
@@ -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;
}