Programming Search⌘K

Kotlin lints, page 2 of 2

The lint rules of Kotlin, with what each one finds. This page has 219 cards.

This call on a non-null reference may be reduced or removed. UselessCallOnNotNull

Some calls are intended to be called on nullable collection or text types (e.g. String?).When this call is used on a reference to a non-null type (e.g. String) it is redundant and will have no effect, so it can be removed. It is in the standard-library rule set. detekt runs it by default since 1.2.0. It needs type resolution.

Code
UselessCallOnNotNull

Source: github.com, detekt.dev. JSON record. This entry is a card. Help write this page.