Visitar URL original
fix: fail fast on invalid fake-delete config by henriquejsza · Pull Request #875 · APIJSON/APIJSON · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update AbstractSQLConfig.java
  • Loading branch information
TommyLemon authored Aug 30, 2026
commit df8529e9ca7f5ea675b210c8660b29b5d1efcc92
Original file line number Diff line number Diff line change
Expand Up @@ -6200,7 +6200,7 @@ else if (w.startsWith("!")) {
? null : fakeDeleteConfigMap.get(config.getTable());

Object deletedKey = accessFakeDeleteMap == null ? null : accessFakeDeleteMap.get(KEY_DELETED_KEY);
if ((deletedKey instanceof String) == false || StringUtil.isNotEmpty(deletedKey, true) == false) {
if ((deletedKey instanceof String) == false || StringUtil.isEmpty(deletedKey, true)) {
throw new IllegalArgumentException(config.getTable() + " 对应的假删除配置错误!"
+ KEY_DELETED_KEY + ":value 中 value 必须为非空 String!当前值为 " + deletedKey);
}
Expand Down