Skip to content

close excel file output stream#8168

Closed
yimaixinchen wants to merge 1 commit into
apache:devfrom
yimaixinchen:dev-third
Closed

close excel file output stream#8168
yimaixinchen wants to merge 1 commit into
apache:devfrom
yimaixinchen:dev-third

Conversation

@yimaixinchen
Copy link
Copy Markdown
Contributor

Purpose of the pull request

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

FileOutputStream fos = null ;
try {
SXSSFWorkbook wb = new SXSSFWorkbook(XLSX_WINDOW_ROW);
fos = new FileOutputStream(String.format("%s/%s.xlsx", xlsFilePath, title));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

best to use try with resources

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We have used this way

@CalvinKirs CalvinKirs added the bug Something isn't working label Jan 24, 2022
@sonarqubecloud
Copy link
Copy Markdown

SonarCloud Quality Gate failed.    Quality Gate failed

Bug E 2 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell C 3 Code Smells

70.0% 70.0% Coverage
0.0% 0.0% Duplication

@CalvinKirs CalvinKirs removed the bug Something isn't working label Jan 24, 2022
@CalvinKirs CalvinKirs closed this Jan 24, 2022
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