increment

Deprecated (with error)

Use incrementAndGet() or getAndIncrement() instead.

Replace with

this.incrementAndGet()

Atomically increments the current value by one.

Since Kotlin

1.3