diff --git a/src/main/java/xyz/zhouxy/plusone/commons/jdbc/DbRecord.java b/src/main/java/xyz/zhouxy/plusone/commons/jdbc/DbRecord.java index 120d26e..a57327c 100644 --- a/src/main/java/xyz/zhouxy/plusone/commons/jdbc/DbRecord.java +++ b/src/main/java/xyz/zhouxy/plusone/commons/jdbc/DbRecord.java @@ -39,11 +39,11 @@ import xyz.zhouxy.plusone.commons.util.OptionalUtil; public class DbRecord extends AbstractMapWrapper { public DbRecord() { - super(new HashMap<>(), k -> Assert.isNotBlank(k, "Key can not be null."), null); + super(new HashMap<>(), k -> Assert.isNotBlank(k, "Key must has text."), null); } public DbRecord(Map map) { - super(map, k -> Assert.isNotBlank(k, "Key can not be null."), null); + super(map, k -> Assert.isNotBlank(k, "Key must has text."), null); } public Optional getValueAsString(String key) {