Skip to content

Fixing @ToBeRemoved annotations with invalid date#6729

Merged
greg-at-moderne merged 1 commit intomainfrom
greg-fix-toberemoved-date
Feb 13, 2026
Merged

Fixing @ToBeRemoved annotations with invalid date#6729
greg-at-moderne merged 1 commit intomainfrom
greg-fix-toberemoved-date

Conversation

@greg-at-moderne
Copy link
Copy Markdown
Contributor

What's changed?

Replacing 2026-02-30 with 2026-03-01 in @ToBeRemoved annotations.

What's your motivation?

Fix:

java.time.format.DateTimeParseException: Text '2026-02-30' could not be parsed: Invalid date 'FEBRUARY 30'
  java.base/java.time.format.DateTimeFormatter.createError(DateTimeFormatter.java:2023)
  java.base/java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1958)
  java.base/java.time.LocalDate.parse(LocalDate.java:430)
  java.base/java.time.LocalDate.parse(LocalDate.java:415)
  org.openrewrite.java.recipes.RemoveToBeRemoved$1.getAfterDate(RemoveToBeRemoved.java:96)

error reported by Moderne.

@greg-at-moderne greg-at-moderne self-assigned this Feb 13, 2026
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Feb 13, 2026
@greg-at-moderne greg-at-moderne marked this pull request as ready for review February 13, 2026 08:33
@greg-at-moderne greg-at-moderne merged commit fcc44d0 into main Feb 13, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Feb 13, 2026
@greg-at-moderne greg-at-moderne deleted the greg-fix-toberemoved-date branch February 13, 2026 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant