mirror of
https://github.com/lightbend/config.git
synced 2025-03-14 19:30:25 +08:00
per review
This commit is contained in:
parent
2566973fdd
commit
6fede7cf73
@ -16,7 +16,7 @@ public class ConfigConditional {
|
||||
this.body = body;
|
||||
|
||||
if (this.left.optional()) {
|
||||
throw new ConfigException.BugOrBroken("Substitutions in conditional expressions cannot be optional");
|
||||
throw new ConfigException.BugOrBroken("Substitution " + this.left.toString() + " in conditional expression cannot be optional");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -28,14 +28,5 @@ final class ConfigNodeConditional extends AbstractConfigNode {
|
||||
}
|
||||
return tokens;
|
||||
}
|
||||
//
|
||||
// protected String name() {
|
||||
// for (AbstractConfigNode n : children) {
|
||||
// if (n instanceof ConfigNodeSimpleValue) {
|
||||
// return (String)Tokens.getValue(((ConfigNodeSimpleValue) n).token()).unwrapped();
|
||||
// }
|
||||
// }
|
||||
// return null;
|
||||
// }
|
||||
}
|
||||
|
||||
|
@ -94,7 +94,7 @@ final class ConfigParser {
|
||||
} else if (n instanceof ConfigNodeObject) {
|
||||
v = parseObject((ConfigNodeObject)n);
|
||||
} else if (n instanceof ConfigNodeArray) {
|
||||
v = parseArray((ConfigNodeArray) n);
|
||||
v = parseArray((ConfigNodeArray)n);
|
||||
} else if (n instanceof ConfigNodeConcatenation) {
|
||||
v = parseConcatenation((ConfigNodeConcatenation)n);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user