Class FindLocaleDateTimeFormats
java.lang.Object
org.openrewrite.Recipe
org.openrewrite.java.migrate.search.FindLocaleDateTimeFormats
- All Implemented Interfaces:
Cloneable
public class FindLocaleDateTimeFormats
extends org.openrewrite.Recipe
Finds usages of locale-based date/time formatting APIs that may be affected by the
JDK 20+ CLDR locale data changes. Starting with JDK 20, the Unicode CLDR 42 locale data
changed the space character before AM/PM designators from a regular space to a narrow
no-break space (NNBSP, ).
This can cause parsing issues when user input contains regular spaces but the formatter expects NNBSP. The affected APIs include locale-based DateFormat and DateTimeFormatter factory methods.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openrewrite.Recipe
org.openrewrite.Recipe.Builder, org.openrewrite.Recipe.DelegatingRecipe -
Field Summary
Fields inherited from class org.openrewrite.Recipe
contributors, examples, PANIC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.openrewrite.TreeVisitor<?, org.openrewrite.ExecutionContext> Methods inherited from class org.openrewrite.Recipe
addDataTable, builder, buildRecipeList, causesAnotherCycle, clone, createRecipeDescriptor, equals, getContributors, getDataTableDescriptors, getDescription, getDescriptor, getDisplayName, getEstimatedEffortPerOccurrence, getExamples, getInstanceName, getInstanceNameSuffix, getJacksonPolymorphicTypeTag, getMaintainers, getName, getRecipeList, getTags, hashCode, maxCycles, noop, onComplete, run, run, run, setContributors, setExamples, validate, validate, validateAll, validateAll, withOptions
-
Constructor Details
-
FindLocaleDateTimeFormats
public FindLocaleDateTimeFormats()
-
-
Method Details
-
getVisitor
public org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getVisitor()- Overrides:
getVisitorin classorg.openrewrite.Recipe
-