Skip to content

Remove throws IOException from methods that do not need to throw it#938

Merged
pisv merged 1 commit intoeclipse-lsp4j:mainfrom
pisv:GH-934
Dec 9, 2025
Merged

Remove throws IOException from methods that do not need to throw it#938
pisv merged 1 commit intoeclipse-lsp4j:mainfrom
pisv:GH-934

Conversation

@pisv
Copy link
Contributor

@pisv pisv commented Dec 8, 2025

Closes #934.

Also removes @SuppressWarnings("resource") on StreamMessageConsumerBenchmark.setup, which is no longer necessary and caused At least one of the problems in category 'resource' is not analysed due to a compiler option being ignored info.

This PR should fix all remaining problems (warnings/infos) in LSP4J workspace.

Closes eclipse-lsp4j#934.

Also removes `@SuppressWarnings("resource")` on
`StreamMessageConsumerBenchmark.setup`, which is no longer necessary and
caused `At least one of the problems in category 'resource' is not
analysed due to a compiler option being ignored` info.
@pisv pisv requested a review from jonahgraham December 8, 2025 15:07
@github-actions
Copy link

github-actions bot commented Dec 8, 2025

Test Results

  500 files  ±0    500 suites  ±0   40s ⏱️ -3s
  359 tests ±0    359 ✅ +1  0 💤 ±0  0 ❌  - 1 
4 052 runs  ±0  4 052 ✅ +1  0 💤 ±0  0 ❌  - 1 

Results for commit 5262a04. ± Comparison against base commit 32e2c0c.

Copy link
Contributor

@jonahgraham jonahgraham left a comment

Choose a reason for hiding this comment

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

Thanks @pisv for picking this up and getting us to 0 warnings.

@jonahgraham
Copy link
Contributor

Feel free to merge @pisv if you are ready.

@pisv
Copy link
Contributor Author

pisv commented Dec 9, 2025

@jonahgraham Thank you for your review and the bulk of the work in getting us to 0 warnings 👍

@pisv pisv merged commit 9e9657b into eclipse-lsp4j:main Dec 9, 2025
7 checks passed
@pisv pisv deleted the GH-934 branch December 9, 2025 15:11
@jonahgraham jonahgraham added this to the 1.0.0 milestone Feb 9, 2026
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.

Remove "throws IOExcpetion" from methods that do not need to throw it

2 participants