This is an automated email from the ASF dual-hosted git repository.
zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 45dce4f0b1d Refactor PropertiesBuilder (#37672)
45dce4f0b1d is described below
commit 45dce4f0b1df45d7220f4a52af65c9cc90e5b168
Author: Liang Zhang <[email protected]>
AuthorDate: Wed Jan 7 15:11:33 2026 +0800
Refactor PropertiesBuilder (#37672)
---
.../org/apache/shardingsphere/infra/util/props/PropertiesBuilder.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git
a/infra/util/src/main/java/org/apache/shardingsphere/infra/util/props/PropertiesBuilder.java
b/infra/util/src/main/java/org/apache/shardingsphere/infra/util/props/PropertiesBuilder.java
index 390bd0ef1c2..9f94eb08d04 100644
---
a/infra/util/src/main/java/org/apache/shardingsphere/infra/util/props/PropertiesBuilder.java
+++
b/infra/util/src/main/java/org/apache/shardingsphere/infra/util/props/PropertiesBuilder.java
@@ -40,10 +40,9 @@ public final class PropertiesBuilder {
for (Property each : props) {
if (each.value instanceof String) {
result.setProperty(each.key, each.value.toString());
- } else {
+ } else if (null != each.value) {
result.put(each.key, each.value);
}
-
}
return result;
}