Delay construction of PreCondition.check failure message in Configuration#set (jeagles)
(cherry picked from commit 858d597be00ce006c1d1d4cd476729e4f1de8d25)
This commit is contained in:
parent
19d479168e
commit
4e40e9d4db
@ -1141,7 +1141,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…
x
Reference in New Issue
Block a user