Cleanup: Use String#join instead of Stream#collect

This commit is contained in:
Phoenix616 2023-03-01 18:15:27 +01:00
parent 199573df59
commit 93f14a330d
No known key found for this signature in database
GPG Key ID: 40E2321E71738EB0
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ public class EntityParser {
fields.add(convertToSQL(field));
}
return fields.stream().collect(Collectors.joining(","));
return String.join(",", fields);
}
/**

View File

@ -132,7 +132,7 @@ public class Table {
String statement;
if (condition == null || condition.isEmpty()) {
String format = '\'' + row.getValues().stream().collect(Collectors.joining("', ")) + '\'';
String format = '\'' + String.join("', ", row.getValues()) + '\'';
statement = String.format(INSERT_VALUES, format);
} else {
String format = row.getKeysAndValues().entrySet().stream()