mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 09:08:24 +08:00
commit
18d1e6d4b5
@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentMap;
|
||||
|
||||
public class Reflectors {
|
||||
|
||||
private final static ConcurrentMap<Class<?>, Reflector> reflectorMap = new ConcurrentHashMap<>();
|
||||
private static final ConcurrentMap<Class<?>, Reflector> reflectorMap = new ConcurrentHashMap<>();
|
||||
|
||||
public static Reflector of(Class<?> type){
|
||||
return MapUtil.computeIfAbsent(reflectorMap, type, Reflector::new);
|
||||
|
||||
@ -52,7 +52,7 @@ public class SqlUtil {
|
||||
/**
|
||||
* 仅支持字母、数字、下划线、空格、逗号、小数点(支持多个字段排序)
|
||||
*/
|
||||
private static String SQL_ORDER_BY_PATTERN = "[a-zA-Z0-9_\\ \\,\\.]+";
|
||||
private static final String SQL_ORDER_BY_PATTERN = "[a-zA-Z0-9_\\ \\,\\.]+";
|
||||
|
||||
public static void keepOrderBySqlSafely(String value) {
|
||||
if (!value.matches(SQL_ORDER_BY_PATTERN)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user