Skip to content

Replace StringBuffer with StringBuilder in ClasspathComputer3_0#2273

Open
laeubi wants to merge 1 commit intoeclipse-pde:masterfrom
laeubi:fix/stringbuffer-to-stringbuilder-classpathcomputer
Open

Replace StringBuffer with StringBuilder in ClasspathComputer3_0#2273
laeubi wants to merge 1 commit intoeclipse-pde:masterfrom
laeubi:fix/stringbuffer-to-stringbuilder-classpathcomputer

Conversation

@laeubi
Copy link
Copy Markdown
Contributor

@laeubi laeubi commented Mar 24, 2026

Replace the synchronized StringBuffer with StringBuilder in ClasspathComputer3_0.

The local variable buffer is not shared across threads, so StringBuilder is the appropriate choice and avoids unnecessary synchronization overhead.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 24, 2026

Test Results

  147 files  ±0    147 suites  ±0   36m 25s ⏱️ +2s
3 497 tests ±0  3 334 ✅  - 40   54 💤 ±0  109 ❌ +40 
9 312 runs  ±0  9 068 ✅  - 40  130 💤 ±0  114 ❌ +40 

For more details on these failures, see this check.

Results for commit 906f333. ± Comparison against base commit 88552db.

♻️ This comment has been updated with latest results.

The local variable `buffer` is not shared across threads, so
StringBuilder is the appropriate choice and avoids unnecessary
synchronization overhead.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@laeubi laeubi force-pushed the fix/stringbuffer-to-stringbuilder-classpathcomputer branch from ac353a8 to 906f333 Compare March 29, 2026 05:07
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.

1 participant