Skip to content

Commit

Permalink
Use Flyweight Pattern (vesoft-inc#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anyzm authored Mar 30, 2020
1 parent 10ee150 commit 9f077d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public ResultSet() {
public ResultSet(List<byte[]> columns, List<RowValue> rows) {
this.columns = Lists.newArrayListWithCapacity(columns.size());
for (byte[] column : columns) {
this.columns.add(new String(column));
this.columns.add(new String(column).intern());
}
this.rows = rows;
}
Expand Down

0 comments on commit 9f077d2

Please sign in to comment.