mute Idea inspection false positives

This commit is contained in:
Stepan Koltsov
2012-05-23 02:52:31 +04:00
parent ac1bf66251
commit 65a6b7f726
6 changed files with 8 additions and 3 deletions
@@ -225,7 +225,7 @@ public class JetControlFlowProcessor {
} }
} }
@Override @SuppressWarnings("SuspiciousMethodCalls") @Override
public void visitBinaryExpression(JetBinaryExpression expression) { public void visitBinaryExpression(JetBinaryExpression expression) {
IElementType operationType = expression.getOperationReference().getReferencedNameElementType(); IElementType operationType = expression.getOperationReference().getReferencedNameElementType();
JetExpression right = expression.getRight(); JetExpression right = expression.getRight();
@@ -150,6 +150,7 @@ public class TypeHierarchyResolver {
* @param owner * @param owner
* @return * @return
*/ */
@SuppressWarnings("SuspiciousMethodCalls")
@NotNull @NotNull
private JetScope getStaticScope(PsiElement declarationElement, @NotNull NamespaceLikeBuilder owner) { private JetScope getStaticScope(PsiElement declarationElement, @NotNull NamespaceLikeBuilder owner) {
DeclarationDescriptor ownerDescriptor = owner.getOwnerForChildren(); DeclarationDescriptor ownerDescriptor = owner.getOwnerForChildren();
@@ -143,7 +143,7 @@ public class ConstraintSystemWithPriorities implements ConstraintSystem {
return expandEqualityConstraint(aValue, bValue); return expandEqualityConstraint(aValue, bValue);
} }
@Override @SuppressWarnings("SuspiciousMethodCalls") @Override
public boolean assertEqualTypeConstructors(@NotNull TypeConstructor a, @NotNull TypeConstructor b) { public boolean assertEqualTypeConstructors(@NotNull TypeConstructor a, @NotNull TypeConstructor b) {
return a.equals(b) return a.equals(b)
|| unknownTypes.containsKey(a.getDeclarationDescriptor()) || unknownTypes.containsKey(a.getDeclarationDescriptor())
@@ -60,6 +60,7 @@ import static org.jetbrains.jet.lang.types.expressions.OperatorConventions.*;
/** /**
* @author abreslav * @author abreslav
*/ */
@SuppressWarnings("SuspiciousMethodCalls")
public class BasicExpressionTypingVisitor extends ExpressionTypingVisitor { public class BasicExpressionTypingVisitor extends ExpressionTypingVisitor {
protected BasicExpressionTypingVisitor(@NotNull ExpressionTypingInternals facade) { protected BasicExpressionTypingVisitor(@NotNull ExpressionTypingInternals facade) {
super(facade); super(facade);
@@ -254,7 +254,9 @@ public class ExpressionTypingServices {
return typeMap; return typeMap;
} }
/*package*/ JetType getBlockReturnedTypeWithWritableScope(@NotNull WritableScope scope, @NotNull List<? extends JetElement> block, @NotNull CoercionStrategy coercionStrategyForLastExpression, ExpressionTypingContext context, BindingTrace trace) { /*package*/
@SuppressWarnings("SuspiciousMethodCalls")
JetType getBlockReturnedTypeWithWritableScope(@NotNull WritableScope scope, @NotNull List<? extends JetElement> block, @NotNull CoercionStrategy coercionStrategyForLastExpression, ExpressionTypingContext context, BindingTrace trace) {
if (block.isEmpty()) { if (block.isEmpty()) {
return JetStandardClasses.getUnitType(); return JetStandardClasses.getUnitType();
} }
@@ -46,6 +46,7 @@ import static org.jetbrains.jet.lang.resolve.BindingContext.VARIABLE_REASSIGNMEN
/** /**
* @author abreslav * @author abreslav
*/ */
@SuppressWarnings("SuspiciousMethodCalls")
public class ExpressionTypingVisitorForStatements extends ExpressionTypingVisitor { public class ExpressionTypingVisitorForStatements extends ExpressionTypingVisitor {
private final WritableScope scope; private final WritableScope scope;
private final BasicExpressionTypingVisitor basic; private final BasicExpressionTypingVisitor basic;