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

Change the use of try to try-with-resources in ParseBenchmark resourceToString() #2755

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

panic08
Copy link
Contributor

@panic08 panic08 commented Oct 6, 2024

Here we will change the use of try to use try-with-resources in the resourceToString() method of the ParseBenchmark class.

Since the current version of Gson uses Java 7 as the minimum version, and try-with-resources has been around since Java 7, this will be a nice and even desirable change

…eToString()

Change the use of try to try-with-resources in ParseBenchmark resourceToString()
Copy link
Member

@eamonnmcmanus eamonnmcmanus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This is a good improvement. Incidentally the minimum version is Java 8, as of a couple of weeks ago.

@eamonnmcmanus eamonnmcmanus merged commit 2aff513 into google:main Oct 9, 2024
11 checks passed
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.

2 participants