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

[Chore] Using try-with-resources to simplify the code. #4995

Merged
merged 3 commits into from
Oct 26, 2023

Conversation

asia-zengtao
Copy link
Contributor

the BufferedReader is used within a try-with-resources statement, which automatically handles the closing of the BufferedReader after use. This ensures that the input stream is properly closed, even in the case of an exception.

Purpose of this pull request

Check list

the BufferedReader is used within a try-with-resources statement, which automatically handles the closing of the BufferedReader after use. This ensures that the input stream is properly closed, even in the case of an exception.
@liugddx liugddx added the First-time contributor First-time contributor label Jun 29, 2023
@TyrantLucifer
Copy link
Member

You can execute mvn spotless:apply to format your codes.

@ic4y
Copy link
Contributor

ic4y commented Aug 5, 2023

@asia-zengtao Please use mvn spotless:apply to format the code.

@hailin0 hailin0 changed the title Using try-with-resources to simplify the code. [Chore] Using try-with-resources to simplify the code. Oct 25, 2023
@hailin0 hailin0 closed this Oct 25, 2023
@hailin0 hailin0 reopened this Oct 25, 2023
@Hisoka-X Hisoka-X merged commit d0aff52 into apache:dev Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants