Skip to content

Conversation

@dossett
Copy link
Contributor

@dossett dossett commented Dec 29, 2025

Now that java 8 is no longer supported, we can use language features introduced in later versions and get ahead of other changes for subsequent upgrades. I'm trying this in one module as a test of automating this with codex.

Codex generated summary:

  • Replaced deprecated reflection APIs with getDeclaredConstructor().newInstance() and unified exception handling, enabled by Java 9+ deprecations now acceptable with Java 11 baseline.
  • Adopted List.of and List.copyOf for immutable collections, removing verbose Arrays.asList/manual wrappers and leveraging Java 9/10 collection factories.
  • Simplified null-defaulting with Objects.requireNonNullElse and removed redundant null checks made unnecessary by Objects.requireNonNull, both available in Java 9+.
  • Modernized small collection usages (e.g., ArrayDeque for queues, diamond operator cleanup), consistent with Java 11 APIs and performance best practices.

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