Skip to content

Commit 906f333

Browse files
laeubiCopilot
andcommitted
Replace 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. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 88552db commit 906f333

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/builder/ClasspathComputer3_0.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ private void recordRequiredIds(BundleDescription model) {
202202
bundleProperties = new Properties();
203203
model.setUserObject(bundleProperties);
204204
}
205-
StringBuffer buffer = new StringBuffer();
205+
StringBuilder buffer = new StringBuilder();
206206
for (Long requiredId : requiredIds) {
207207
buffer.append(requiredId.toString());
208208
buffer.append(':');

0 commit comments

Comments
 (0)