mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8264029: Replace uses of StringBuffer with StringBuilder in java.base
Reviewed-by: shade
This commit is contained in:
parent
019080e470
commit
fbbd98ba53
3 changed files with 9 additions and 12 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -37,7 +37,6 @@ import java.util.ArrayList;
|
|||
import java.util.Deque;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.function.Consumer;
|
||||
import jdk.internal.misc.Unsafe;
|
||||
|
||||
|
@ -320,12 +319,11 @@ class WindowsSelectorImpl extends SelectorImpl {
|
|||
private void checkForException() throws IOException {
|
||||
if (exception == null)
|
||||
return;
|
||||
StringBuffer message = new StringBuffer("An exception occurred" +
|
||||
" during the execution of select(): \n");
|
||||
message.append(exception);
|
||||
message.append('\n');
|
||||
String message = "An exception occurred" +
|
||||
" during the execution of select(): \n" +
|
||||
exception + '\n';
|
||||
exception = null;
|
||||
throw new IOException(message.toString());
|
||||
throw new IOException(message);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue