mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
[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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user