Use Long.countOneBits() instead of java.lang.Long.bitCount

Proprietary

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

org.openrewrite.kotlin.migrate.UseLongCountOneBits$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.migrate.UseLongCountOneBits$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.