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) {
IElementType operationType = expression.getOperationReference().getReferencedNameElementType();
JetExpression right = expression.getRight();
@@ -150,6 +150,7 @@ public class TypeHierarchyResolver {
* @param owner
* @return
*/
@SuppressWarnings("SuspiciousMethodCalls")
@NotNull
private JetScope getStaticScope(PsiElement declarationElement, @NotNull NamespaceLikeBuilder owner) {
DeclarationDescriptor ownerDescriptor = owner.getOwnerForChildren();
@@ -143,7 +143,7 @@ public class ConstraintSystemWithPriorities implements ConstraintSystem {
return expandEqualityConstraint(aValue, bValue);
}
@Override
@SuppressWarnings("SuspiciousMethodCalls") @Override
public boolean assertEqualTypeConstructors(@NotNull TypeConstructor a, @NotNull TypeConstructor b) {
return a.equals(b)
|| unknownTypes.containsKey(a.getDeclarationDescriptor())
@@ -60,6 +60,7 @@ import static org.jetbrains.jet.lang.types.expressions.OperatorConventions.*;
/**
* @author abreslav
*/
@SuppressWarnings("SuspiciousMethodCalls")
public class BasicExpressionTypingVisitor extends ExpressionTypingVisitor {
protected BasicExpressionTypingVisitor(@NotNull ExpressionTypingInternals facade) {
super(facade);
@@ -254,7 +254,9 @@ public class ExpressionTypingServices {
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()) {
return JetStandardClasses.getUnitType();
}
@@ -46,6 +46,7 @@ import static org.jetbrains.jet.lang.resolve.BindingContext.VARIABLE_REASSIGNMEN
/**
* @author abreslav
*/
@SuppressWarnings("SuspiciousMethodCalls")
public class ExpressionTypingVisitorForStatements extends ExpressionTypingVisitor {
private final WritableScope scope;
private final BasicExpressionTypingVisitor basic;