mirror of
https://github.com/lightbend/config.git
synced 2025-03-13 18:50:45 +08:00
fixed code formating to reduce diffs
This commit is contained in:
parent
179e6d647a
commit
0b4c9e81ab
@ -501,8 +501,8 @@ final class SimpleConfig implements Config, MergeableValue, Serializable {
|
||||
l.add(ConfigMemorySize.ofBytes(n));
|
||||
} else {
|
||||
throw new ConfigException.WrongType(v.origin(), path,
|
||||
"memory size string or number of bytes", v.valueType()
|
||||
.name());
|
||||
"memory size string or number of bytes", v.valueType()
|
||||
.name());
|
||||
}
|
||||
}
|
||||
return l;
|
||||
@ -866,18 +866,17 @@ final class SimpleConfig implements Config, MergeableValue, Serializable {
|
||||
|
||||
// this would be caught later anyway, but the error message
|
||||
// is more helpful if we check it here.
|
||||
if (numberString.length() == 0) {
|
||||
if (numberString.length() == 0)
|
||||
throw new ConfigException.BadValue(originForException,
|
||||
pathForException, "No number in size-in-bytes value '"
|
||||
+ input + "'");
|
||||
}
|
||||
pathForException, "No number in size-in-bytes value '"
|
||||
+ input + "'");
|
||||
|
||||
MemoryUnit units = MemoryUnit.parseUnit(unitString);
|
||||
|
||||
if (units == null) {
|
||||
throw new ConfigException.BadValue(originForException, pathForException,
|
||||
"Could not parse size-in-bytes unit '" + unitString
|
||||
+ "' (try k, K, kB, KiB, kilobytes, kibibytes)");
|
||||
"Could not parse size-in-bytes unit '" + unitString
|
||||
+ "' (try k, K, kB, KiB, kilobytes, kibibytes)");
|
||||
}
|
||||
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user