Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up usages of some old Java APIs #322

Merged
merged 3 commits into from
Apr 26, 2024
Merged

Clean up usages of some old Java APIs #322

merged 3 commits into from
Apr 26, 2024

Conversation

robinst
Copy link
Collaborator

@robinst robinst commented Apr 26, 2024

  • Use List.of, Set.of, Map.of instead of the various Collections methods
  • Use StandardCharsets instead of Charset.forName
  • Use Objects.requireNonNull instead of throwing manually

There's probably more but yeah.

@robinst robinst merged commit 124edae into main Apr 26, 2024
10 checks passed
@robinst robinst deleted the java-11-updates branch April 26, 2024 13:17
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