Replaces usage of `StringBuffer` with `StringBuilder` and fixes stray

single quote in the same `PluginInfo#toString()` method.

Closes #5605
This commit is contained in:
Chris Earle 2014-03-30 00:04:02 -04:00 committed by Luca Cavanna
parent a34378f852
commit 70c089de0a
2 changed files with 3 additions and 3 deletions

View File

@ -207,13 +207,13 @@ public class PluginInfo implements Streamable, Serializable, ToXContent {
@Override
public String toString() {
final StringBuffer sb = new StringBuffer("PluginInfo{");
final StringBuilder sb = new StringBuilder("PluginInfo{");
sb.append("name='").append(name).append('\'');
sb.append(", description='").append(description).append('\'');
sb.append(", site=").append(site);
sb.append(", jvm=").append(jvm);
sb.append(", version='").append(version).append('\'');
sb.append(", isolation='").append(isolation);
sb.append(", isolation=").append(isolation);
sb.append('}');
return sb.toString();
}

View File

@ -172,7 +172,7 @@ public class FullRestartStressTest {
for (int b = 0; b < numberOfBulks; b++) {
BulkRequestBuilder bulk = client.client().prepareBulk();
for (int k = 0; k < bulkSize; k++) {
StringBuffer sb = new StringBuffer();
StringBuilder sb = new StringBuilder();
XContentBuilder json = XContentFactory.jsonBuilder().startObject()
.field("field", "value" + ThreadLocalRandom.current().nextInt());