Skip to content

Commit

Permalink
Replaces usage of StringBuffer with StringBuilder and fixes stray
Browse files Browse the repository at this point in the history
single quote in the same `PluginInfo#toString()` method.

Closes #5605
  • Loading branch information
pickypg authored and javanna committed Apr 1, 2014
1 parent fc580f3 commit e2a7e10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -187,7 +187,7 @@ public int hashCode() {

@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);
Expand Down
Expand Up @@ -172,7 +172,7 @@ public void run() throws Exception {
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());

Expand Down

0 comments on commit e2a7e10

Please sign in to comment.