Linting rules
E014: several-not-null-assertions
Detects repeated not-null assertions like `foo!!`.
Metadata
Code:E014Rule: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