Use Long.countOneBits() instead of java.lang.Long.bitCount
ProprietaryLong.bitCount(l) is the JVM-only popcount; the multiplatform l.countOneBits() extension reads as a receiver call.
org. openrewrite. kotlin. migrate. UseLongCountOneBits$KtRecipemod 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.