Use Int.countOneBits() instead of java.lang.Integer.bitCount

Proprietary

Integer.bitCount(i) is the JVM-only popcount; the multiplatform i.countOneBits() extension reads as a receiver call.

org.openrewrite.kotlin.migrate.UseIntCountOneBits$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.migrate.UseIntCountOneBits$KtRecipe'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.