Prefer java.nio.charset.StandardCharsets
MSALPrefer the Java standard library's java.nio.charset.StandardCharsets over org.apache.commons.lang3.CharEncoding.
org. openrewrite. apache. commons. lang3. UseStandardCharsetsmod run . --recipe= org. openrewrite. apache. commons. lang3. UseStandardCharsetsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Change static field access to static method access
CharEncoding#ISO_8859_1toname - Change static field access to static method access
CharEncoding#US_ASCIItoname - Change static field access to static method access
CharEncoding#UTF_16toname - Change static field access to static method access
CharEncoding#UTF_16BEtoname - Change static field access to static method access
CharEncoding#UTF_16LEtoname - Change static field access to static method access
CharEncoding#UTF_8toname