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