Skip to content

Replace deprecated Locale constructors in JsonFormatTest - #366

Merged
cowtowncoder merged 1 commit into
2.xfrom
tatu-claude/2.x/fix-jsonformattest-locale
Nov 3, 2026
Merged

cowtowncoder merged 1 commit into
2.xfrom
tatu-claude/2.x/fix-jsonformattest-locale

Conversation

@cowtowncoder

Copy link
Copy Markdown
Member

Follow-up to #365: resolves the new Locale(...) warnings in tests.

  • Tests: replace deprecated new Locale(...) in JsonFormatTest with Java 8-compatible Locale constants and Locale.Builder

./mvnw test -Dtest=JsonFormatTest passes locally on JDK 8 and 17. The warnings only appear on JDK 19+, so check them on the CI JDK 21/25 builds.

Not addressed:

  • new Locale(...) in JsonFormat: Locale.of() needs Java 19+ and this branch targets Java 8, and Locale.Builder rejects some inputs the constructors accept, so it could change behavior

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cowtowncoder
cowtowncoder merged commit 8619aac into 2.x Nov 3, 2026
4 checks passed
@cowtowncoder
cowtowncoder deleted the tatu-claude/2.x/fix-jsonformattest-locale branch November 3, 2026 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant