Changed highlighting range and attributes of useless elvis operator

This commit is contained in:
Valentin Kipyatkov
2015-06-01 22:22:17 +03:00
parent 11290ae9e7
commit aefe0dd192
14 changed files with 26 additions and 21 deletions
@@ -268,7 +268,7 @@ public class JavaNullabilityWarningsChecker : AdditionalTypeChecker {
DataFlowValueFactory.createDataFlowValue(baseExpression, baseExpressionType, c),
c
) {
c.trace.report(Errors.USELESS_ELVIS.on(expression.getOperationReference(), baseExpressionType))
c.trace.report(Errors.USELESS_ELVIS.on(expression, baseExpressionType))
}
}
JetTokens.EQEQ,