Linting rules
E019: several-not-null-assertions
Detects repeated not-null assertions like `foo!!`.
Metadata
Code:E019Rule:several-not-null-assertionsStatus: Stable sincev0.0.1Quick fix: always available
What it does
Detects repeated not-null assertions like foo!!.
Why is this bad?
Repeating ! is redundant: after the first not-null assertion the value is already non-null.
Example
val x = foo!!;Use instead:
val x = foo!;Last updated on