Skip to content

chore: fix Sonar findings in dev loop and hotswapper test - #27454

Merged
mcollovati merged 2 commits into
mainfrom
fix/sonar-sort-and-throws
Nov 30, 2026
Merged

mcollovati merged 2 commits into
mainfrom
fix/sonar-sort-and-throws

Conversation

@mcollovati

Copy link
Copy Markdown
Contributor

refactor · vaadin-dev-server · nobody; no behavior change

Fixes two minor Sonar findings that show up on every pull request touching these files: list sorting through the old static helper, and a test that declares an exception it never throws.

Risks:

  • ✅ No behavior change, no public API, no security, memory, serialization, threading, performance or migration impact.

  • Replaced the four Collections.sort(list) calls in DevLoopRedefiner with list.sort(Comparator.naturalOrder()) (java:S9412).

  • Removed the unused throws IOException from JsDefinitionHotswapperTest.extendedInterfaceRedefinedInPlace_definitionsExtendingItSeeTheNewJavaScript (java:S1130).

@mcollovati
mcollovati marked this pull request as ready for review November 27, 2026 05:28
@vaadin-bot

Copy link
Copy Markdown
Collaborator

@mcollovati this "chore:"/"test:"/"refactor:" PR has been approved automatically, but auto merge has not been enabled for it. You can enable the auto merge by yourself, or ask another member for another review. [Message is sent from bot]

@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Test Results

 1 710 files   - 30   1 800 suites   - 30   2h 15m 38s ⏱️ + 5m 14s
13 926 tests  -  3  13 854 ✅  -  3  72 💤 ±0  0 ❌ ±0 
14 604 runs   - 66  14 532 ✅  - 66  72 💤 ±0  0 ❌ ±0 

Results for commit 6e34482. ± Comparison against base commit 247820b.

♻️ This comment has been updated with latest results.

@mcollovati

Copy link
Copy Markdown
Contributor Author

@totally-not-ai merge main and resolve conflicts

…rows

# Conflicts:
#	vaadin-dev-server/src/test/java/com/vaadin/base/devserver/hotswap/impl/JsDefinitionHotswapperTest.java
@totally-not-ai

Copy link
Copy Markdown
Contributor

@mcollovati Merged main. The only conflict was in JsDefinitionHotswapperTest: kept the new extendedInterfaceWithoutExpressions_definitionsExtendingItReported test from main (it still needs throws IOException) and kept this PR's removal of the unneeded throws IOException on the in-place redefinition test. Dev-loop and hotswapper tests pass.

@mcollovati
mcollovati enabled auto-merge November 30, 2026 10:11
@vaadin-bot

Copy link
Copy Markdown
Collaborator

@mcollovati this "chore:"/"test:"/"refactor:" PR has been approved automatically, but auto merge has not been enabled for it. You can enable the auto merge by yourself, or ask another member for another review. [Message is sent from bot]

@sonarqubecloud

Copy link
Copy Markdown

@mcollovati
mcollovati added this pull request to the merge queue Nov 30, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 30, 2026
@mcollovati
mcollovati added this pull request to the merge queue Nov 30, 2026
Merged via the queue into main with commit e81232f Nov 30, 2026
57 checks passed
@mcollovati
mcollovati deleted the fix/sonar-sort-and-throws branch November 30, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants