Rename Jackson 2.x methods to 3.x equivalents for JsonParser
Apache 2.0Rename JsonParser methods that were renamed in 3.x (e.g., getTextCharacters() to getStringCharacters(), getCurrentValue() to currentValue()).
org. openrewrite. java. jackson. UpgradeJackson_2_3_JsonParserMethodRenamesmod run . --recipe= org. openrewrite. java. jackson. UpgradeJackson_2_3_JsonParserMethodRenamesInstall 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 method name
com.fasterxml.jackson.core.JsonParser getCodec()toobjectReadContext - Change method name
com.fasterxml.jackson.core.JsonParser getParsingContext()tostreamReadContext - Change method name
com.fasterxml.jackson.core.JsonParser getInputSource()tostreamReadInputSource - Change method name
com.fasterxml.jackson.core.JsonParser nextFieldName(..)tonextName - Change method name
com.fasterxml.jackson.core.JsonParser getCurrentLocation()tocurrentLocation - Change method name
com.fasterxml.jackson.core.JsonParser getTokenLocation()tocurrentTokenLocation - Change method name
com.fasterxml.jackson.core.JsonParser getCurrentValue()tocurrentValue - Change method name
com.fasterxml.jackson.core.JsonParser setCurrentValue(..)toassignCurrentValue - Change method name
com.fasterxml.jackson.core.JsonParser getText(..)togetString - Change method name
com.fasterxml.jackson.core.JsonParser getTextCharacters()togetStringCharacters - Change method name
com.fasterxml.jackson.core.JsonParser getTextLength()togetStringLength - Change method name
com.fasterxml.jackson.core.JsonParser getTextOffset()togetStringOffset - Change method name
com.fasterxml.jackson.core.JsonParser hasTextCharacters()tohasStringCharacters - Change method name
com.fasterxml.jackson.core.JsonParser nextTextValue()tonextStringValue - Change method name
com.fasterxml.jackson.core.JsonParser getCurrentToken()tocurrentToken - Change method name
com.fasterxml.jackson.core.JsonParser getCurrentName()tocurrentName