mirror of
https://github.com/lightbend/config.git
synced 2025-02-05 17:10:09 +08:00
Merge pull request #731 from hkupty/drop-array-from-fast-path
This commit is contained in:
commit
2c0ac854e8
@ -258,8 +258,6 @@ final class PathParser {
|
||||
private static Path fastPathBuild(Path tail, String s, int end) {
|
||||
// lastIndexOf takes last index it should look at, end - 1 not end
|
||||
int splitAt = s.lastIndexOf('.', end - 1);
|
||||
ArrayList<Token> tokens = new ArrayList<Token>();
|
||||
tokens.add(Tokens.newUnquotedText(null, s));
|
||||
// this works even if splitAt is -1; then we start the substring at 0
|
||||
Path withOneMoreElement = new Path(s.substring(splitAt + 1, end), tail);
|
||||
if (splitAt < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user