mute Idea inspection false positives
This commit is contained in:
@@ -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();
|
||||
|
||||
+1
-1
@@ -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())
|
||||
|
||||
+1
@@ -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);
|
||||
|
||||
+3
-1
@@ -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();
|
||||
}
|
||||
|
||||
+1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user