Delay construction of PreCondition.check failure message in Configuration#set (jeagles)
This commit is contained in:
parent
46d37a65cf
commit
858d597be0
@ -1208,7 +1208,7 @@ public void set(String name, String value, String source) {
|
||||
"Property name must not be null");
|
||||
Preconditions.checkArgument(
|
||||
value != null,
|
||||
"The value of property " + name + " must not be null");
|
||||
"The value of property %s must not be null", name);
|
||||
name = name.trim();
|
||||
DeprecationContext deprecations = deprecationContext.get();
|
||||
if (deprecations.getDeprecatedKeyMap().isEmpty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user