Skip to content

Commit 30aa4b6

Browse files
committed
StringBuffer -> StringBuilder
1 parent 9c577d5 commit 30aa4b6

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

visualvm/appui/src/org/graalvm/visualvm/modules/appui/AboutAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ private String getLogfile() {
108108

109109
private String getDetails() {
110110
if (details == null) {
111-
StringBuffer sb = new StringBuffer();
111+
StringBuilder sb = new StringBuilder();
112112

113113
sb.append("<table border=\"0\">"); // NOI18N
114114

visualvm/attach/src/org/graalvm/visualvm/attach/AttachModelImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ private synchronized String executeJCmd(String command) {
219219
}
220220

221221
private String readToEOF(InputStream in) throws IOException {
222-
StringBuffer buffer = new StringBuffer(1024);
222+
StringBuilder buffer = new StringBuilder(1024);
223223
byte b[] = new byte[256];
224224
int n;
225225

visualvm/coredump/src/org/graalvm/visualvm/coredump/impl/OverviewViewSupport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ private void initComponents(String jvmargs) {
199199
private String formatJVMArgs(String jvmargs) {
200200
String mangledString = " ".concat(jvmargs).replace(" -","\n"); // NOI18N
201201
StringTokenizer tok = new StringTokenizer(mangledString,"\n"); // NOI18N
202-
StringBuffer text = new StringBuffer(100);
202+
StringBuilder text = new StringBuilder(100);
203203

204204
while(tok.hasMoreTokens()) {
205205
String arg = tok.nextToken().replace(" ","&nbsp;"); // NOI18N
@@ -254,7 +254,7 @@ private void initComponents(Properties properties) {
254254
}
255255

256256
private String formatSystemProperties(Properties properties) {
257-
StringBuffer text = new StringBuffer(200);
257+
StringBuilder text = new StringBuilder(200);
258258
List<Object> keys = new ArrayList<>();
259259
Enumeration<?> en = properties.propertyNames();
260260
Iterator<Object> keyIt;

visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/results/jdbc/SQLParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class SQLParser {
6262
private final StringCache strings;
6363

6464
SQLParser() {
65-
StringBuffer pattern = new StringBuffer();
65+
StringBuilder pattern = new StringBuilder();
6666

6767
for (int i =0; i < commands.length; i+=2) {
6868
pattern.append("(^\\b"); // NOI18N

visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/server/ProfilerCalibrator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public static void main(String[] args) {
161161
double m2 = (((double) status.methodEntryExitCallTime[2]) * 1000000) / cntsInSec; // Ditto
162162
double m4 = (((double) status.methodEntryExitCallTime[4]) * 1000000) / cntsInSec; // Ditto
163163

164-
StringBuffer s = new StringBuffer();
164+
StringBuilder s = new StringBuilder();
165165
s.append(MessageFormat.format(CALIBRATION_RESULTS_MSG,
166166
new Object[] { nf.format(m0), nf.format(m1), nf.format(m2), nf.format(m4) }));
167167

0 commit comments

Comments
 (0)