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
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.

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>
@github-actions
Copy link

Test Results

  147 files  ±0    147 suites  ±0   36m 16s ⏱️ + 1m 10s
3 495 tests ±0  3 372 ✅  - 69   54 💤 ±0  69 ❌ +69 
9 306 runs  ±0  9 102 ✅  - 74  130 💤 ±0  74 ❌ +74 

For more details on these failures, see this check.

Results for commit ac353a8. ± Comparison against base commit 95c57fb.

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