[NI] Suppress false positive IDEA warnings in NewConstraintSystemImpl
This commit is contained in:
+8
@@ -41,21 +41,29 @@ class NewConstraintSystemImpl(
|
|||||||
COMPLETION
|
COMPLETION
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If remove spread operator then call `checkState` will resolve to itself
|
||||||
|
* instead of fun checkState(vararg allowedState: State)
|
||||||
|
*/
|
||||||
|
@Suppress("RemoveRedundantSpreadOperator")
|
||||||
private fun checkState(a: State) {
|
private fun checkState(a: State) {
|
||||||
if (!AbstractTypeChecker.RUN_SLOW_ASSERTIONS) return
|
if (!AbstractTypeChecker.RUN_SLOW_ASSERTIONS) return
|
||||||
checkState(*arrayOf(a))
|
checkState(*arrayOf(a))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("RemoveRedundantSpreadOperator")
|
||||||
private fun checkState(a: State, b: State) {
|
private fun checkState(a: State, b: State) {
|
||||||
if (!AbstractTypeChecker.RUN_SLOW_ASSERTIONS) return
|
if (!AbstractTypeChecker.RUN_SLOW_ASSERTIONS) return
|
||||||
checkState(*arrayOf(a, b))
|
checkState(*arrayOf(a, b))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("RemoveRedundantSpreadOperator")
|
||||||
private fun checkState(a: State, b: State, c: State) {
|
private fun checkState(a: State, b: State, c: State) {
|
||||||
if (!AbstractTypeChecker.RUN_SLOW_ASSERTIONS) return
|
if (!AbstractTypeChecker.RUN_SLOW_ASSERTIONS) return
|
||||||
checkState(*arrayOf(a, b, c))
|
checkState(*arrayOf(a, b, c))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("RemoveRedundantSpreadOperator")
|
||||||
private fun checkState(a: State, b: State, c: State, d: State) {
|
private fun checkState(a: State, b: State, c: State, d: State) {
|
||||||
if (!AbstractTypeChecker.RUN_SLOW_ASSERTIONS) return
|
if (!AbstractTypeChecker.RUN_SLOW_ASSERTIONS) return
|
||||||
checkState(*arrayOf(a, b, c, d))
|
checkState(*arrayOf(a, b, c, d))
|
||||||
|
|||||||
Reference in New Issue
Block a user