StringBuilder instead of StringBuffer.
This commit is contained in:
@@ -72,7 +72,7 @@ public class DepotMarshaller<T>
|
|||||||
_fields = flist.toArray(new FieldMarshaller[flist.size()]);
|
_fields = flist.toArray(new FieldMarshaller[flist.size()]);
|
||||||
|
|
||||||
// generate our full list of columns for use in queries
|
// generate our full list of columns for use in queries
|
||||||
StringBuffer columns = new StringBuffer();
|
StringBuilder columns = new StringBuilder();
|
||||||
for (FieldMarshaller fm : _fields) {
|
for (FieldMarshaller fm : _fields) {
|
||||||
if (columns.length() > 0) {
|
if (columns.length() > 0) {
|
||||||
columns.append(",");
|
columns.append(",");
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ public class DepotRepository
|
|||||||
|
|
||||||
public String toWhereClause ()
|
public String toWhereClause ()
|
||||||
{
|
{
|
||||||
StringBuffer where = new StringBuffer();
|
StringBuilder where = new StringBuilder();
|
||||||
for (int ii = 0; ii < indices.length; ii++) {
|
for (int ii = 0; ii < indices.length; ii++) {
|
||||||
if (ii > 0) {
|
if (ii > 0) {
|
||||||
where.append(" and ");
|
where.append(" and ");
|
||||||
|
|||||||
Reference in New Issue
Block a user