mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-14 13:47:09 +00:00
[improvement][project]Adjust files based on code style.
This commit is contained in:
@@ -21,12 +21,9 @@ public class ThreadPoolConfig {
|
||||
|
||||
@Bean("mapExecutor")
|
||||
public ThreadPoolExecutor getMapExecutor() {
|
||||
return new ThreadPoolExecutor(
|
||||
8, 16, 60 * 3, TimeUnit.SECONDS,
|
||||
new LinkedBlockingQueue<>(),
|
||||
return new ThreadPoolExecutor(8, 16, 60 * 3, TimeUnit.SECONDS, new LinkedBlockingQueue<>(),
|
||||
new ThreadFactoryBuilder().setNameFormat("supersonic-map-pool-").build(),
|
||||
new ThreadPoolExecutor.CallerRunsPolicy()
|
||||
);
|
||||
new ThreadPoolExecutor.CallerRunsPolicy());
|
||||
}
|
||||
|
||||
@Bean("chatExecutor")
|
||||
|
||||
@@ -219,8 +219,8 @@ public class SqlRemoveHelper {
|
||||
updateLikeExpression(likeExpression, constantExpression);
|
||||
}
|
||||
|
||||
private static void handleBetweenExpression(Between between,
|
||||
Set<String> removeFieldNames) throws JSQLParserException {
|
||||
private static void handleBetweenExpression(Between between, Set<String> removeFieldNames)
|
||||
throws JSQLParserException {
|
||||
String columnName = SqlSelectHelper.getColumnName(between.getLeftExpression());
|
||||
if (!removeFieldNames.contains(columnName)) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user