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

test: Ensure file is closed after reading lines #12990

Merged
merged 2 commits into from
Feb 16, 2022

Conversation

mcollovati
Copy link
Collaborator

Description

Used a try-with-resources statement to ensure that log file gets closed
after iterating over its contents.

Type of change

  • Bugfix
  • Feature

Checklist

  • I have read the contribution guide: https://vaadin.com/docs/latest/guide/contributing/overview/
  • I have added a description following the guideline.
  • The issue is created in the corresponding repository and I have referenced it.
  • I have added tests to ensure my change is effective and works as intended.
  • New and existing tests are passing locally with my change.
  • I have performed self-review and corrected misspellings.

Additional for Feature type of change

  • Enhancement / new feature was discussed in a corresponding GitHub issue and Acceptance Criteria were created.

Used a try-with-resources statement to ensure that log file gets closed
after iterating over its contents.
@github-actions
Copy link

github-actions bot commented Feb 10, 2022

Unit Test Results

   936 files  +161     936 suites  +161   38m 8s ⏱️ + 2m 46s
6 097 tests +317  6 047 ✔️ +315  50 💤 +2  0 ±0 
6 288 runs  +475  6 233 ✔️ +469  55 💤 +6  0 ±0 

Results for commit e33b426. ± Comparison against base commit 1322902.

♻️ This comment has been updated with latest results.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@vaadin-bot vaadin-bot added +1.0.0 and removed +0.0.1 labels Feb 15, 2022
@caalador caalador added +0.0.1 and removed +1.0.0 labels Feb 16, 2022
@caalador caalador merged commit 2a369bf into master Feb 16, 2022
@caalador caalador deleted the performanceit_ensure_logfile_closed branch February 16, 2022 04:39
vaadin-bot pushed a commit that referenced this pull request Feb 16, 2022
Used a try-with-resources statement to ensure that log file gets closed
after iterating over its contents.
vaadin-bot pushed a commit that referenced this pull request Feb 16, 2022
Used a try-with-resources statement to ensure that log file gets closed
after iterating over its contents.
vaadin-bot pushed a commit that referenced this pull request Feb 16, 2022
Used a try-with-resources statement to ensure that log file gets closed
after iterating over its contents.
vaadin-bot pushed a commit that referenced this pull request Feb 16, 2022
Used a try-with-resources statement to ensure that log file gets closed
after iterating over its contents.
vaadin-bot added a commit that referenced this pull request Feb 16, 2022
Used a try-with-resources statement to ensure that log file gets closed
after iterating over its contents.

Co-authored-by: Marco Collovati <[email protected]>
vaadin-bot added a commit that referenced this pull request Feb 16, 2022
Used a try-with-resources statement to ensure that log file gets closed
after iterating over its contents.

Co-authored-by: Marco Collovati <[email protected]>
vaadin-bot added a commit that referenced this pull request Feb 16, 2022
Used a try-with-resources statement to ensure that log file gets closed
after iterating over its contents.

Co-authored-by: Marco Collovati <[email protected]>
vaadin-bot added a commit that referenced this pull request Feb 16, 2022
Used a try-with-resources statement to ensure that log file gets closed
after iterating over its contents.

Co-authored-by: Marco Collovati <[email protected]>
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.

3 participants