Skip to content

Commit e4b895f

Browse files
committed
Change StringBuffer to StringBuilder.
1 parent b98fa8f commit e4b895f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/org/apache/ibatis/submitted/sqlprovider/OurSqlBuilder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ private Map<String, String> getColumnMap(ProviderContext context){
262262
public String buildInsertSelective(ProviderContext context) {
263263
final String tableName = context.getMapperType().getAnnotation(BaseMapper.Meta.class).tableName();
264264
Map<String, String> columnMap = getColumnMap(context);
265-
StringBuffer sqlBuffer = new StringBuffer();
265+
StringBuilder sqlBuffer = new StringBuilder();
266266
sqlBuffer.append("<script>");
267267
sqlBuffer.append("insert into ");
268268
sqlBuffer.append(tableName);
@@ -287,7 +287,7 @@ public String buildInsertSelective(ProviderContext context) {
287287
public String buildUpdateSelective(ProviderContext context) {
288288
final String tableName = context.getMapperType().getAnnotation(BaseMapper.Meta.class).tableName();
289289
Map<String, String> columnMap = getColumnMap(context);
290-
StringBuffer sqlBuffer = new StringBuffer();
290+
StringBuilder sqlBuffer = new StringBuilder();
291291
sqlBuffer.append("<script>");
292292
sqlBuffer.append("update ");
293293
sqlBuffer.append(tableName);
@@ -307,7 +307,7 @@ public String buildUpdateSelective(ProviderContext context) {
307307
public String buildGetByEntityQuery(ProviderContext context) {
308308
final String tableName = context.getMapperType().getAnnotation(BaseMapper.Meta.class).tableName();
309309
Map<String, String> columnMap = getColumnMap(context);
310-
StringBuffer sqlBuffer = new StringBuffer();
310+
StringBuilder sqlBuffer = new StringBuilder();
311311
sqlBuffer.append("<script>");
312312
sqlBuffer.append("select * from ");
313313
sqlBuffer.append(tableName);

0 commit comments

Comments
 (0)