[wpiutil] Replace StringBuffer usage with StringBuilder (#7376)

This is a local variable that doesn't escape the method, so there's certainly no reason to have synchronization here.
This commit is contained in:
David Vo
2024-11-11 02:43:43 +11:00
committed by GitHub
parent 280d2c7e32
commit 6adad7bad7

View File

@@ -12,7 +12,7 @@ public class MsvcRuntimeException extends RuntimeException {
int foundMajor, int foundMinor, int expectedMajor, int expectedMinor, String runtimePath) {
String jvmLocation = ProcessHandle.current().info().command().orElse("Unknown");
StringBuffer builder = new StringBuffer(100);
StringBuilder builder = new StringBuilder(100);
builder
.append("Invalid MSVC Runtime Detected.\n")
.append(