Delay construction of PreCondition.check failure message in Configuration#set (jeagles)
(cherry picked from commit 858d597be0
)
This commit is contained in:
parent
0e8beb214d
commit
675bc97f18
|
@ -1145,7 +1145,7 @@ public class Configuration implements Iterable<Map.Entry<String,String>>,
|
|||
"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