Skip to content

Commit 45dce4f

Browse files
authored
Refactor PropertiesBuilder (#37672)
1 parent 3734ddf commit 45dce4f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

infra/util/src/main/java/org/apache/shardingsphere/infra/util/props/PropertiesBuilder.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,9 @@ public static Properties build(final Property... props) {
4040
for (Property each : props) {
4141
if (each.value instanceof String) {
4242
result.setProperty(each.key, each.value.toString());
43-
} else {
43+
} else if (null != each.value) {
4444
result.put(each.key, each.value);
4545
}
46-
4746
}
4847
return result;
4948
}

0 commit comments

Comments
 (0)