Skip to content

Commit

Permalink
Merge pull request #731 from hkupty/drop-array-from-fast-path
Browse files Browse the repository at this point in the history
  • Loading branch information
havocp authored May 28, 2021
2 parents f92a4ee + fca5de9 commit 2c0ac85
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions config/src/main/java/com/typesafe/config/impl/PathParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,6 @@ private static boolean looksUnsafeForFastParser(String s) {
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) {
Expand Down

0 comments on commit 2c0ac85

Please sign in to comment.