Skip to content

Modernize Java code and enforce strict compiler warnings - #265

Merged
bwaldvogel merged 12 commits into
mainfrom
chore/java21-modernization
Nov 14, 2026
Merged

bwaldvogel merged 12 commits into
mainfrom
chore/java21-modernization

Conversation

@bwaldvogel

Copy link
Copy Markdown
Owner

Use JDK APIs and language features available with the Java 21 baseline to simplify BSON hex conversion, unsigned byte comparisons, collection handling, type checks, switches, and aggregation parameter classes. Replace concatenated JSON test data with text blocks.

Replace deprecated Netty event-loop APIs and fix the flaky timestamp assertion by making both bounds inclusive.

Enable -Xlint:all and -Werror for production and test sources, with the existing warnings addressed. Keep this-escape disabled pending a separate review of constructor initialization.

@bwaldvogel
bwaldvogel merged commit 24b4c84 into main Nov 14, 2026
3 checks passed
@bwaldvogel
bwaldvogel deleted the chore/java21-modernization branch November 15, 2026 14:28
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