From 28a096f157102cbd739aec14857405db58f81aef Mon Sep 17 00:00:00 2001 From: Preben Ingvaldsen Date: Fri, 20 Mar 2015 14:05:32 -0700 Subject: [PATCH] Cleanup based on findbugs --- .../java/com/typesafe/config/impl/ConfigDocumentParser.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/config/src/main/java/com/typesafe/config/impl/ConfigDocumentParser.java b/config/src/main/java/com/typesafe/config/impl/ConfigDocumentParser.java index 3f498843..b4c7c395 100644 --- a/config/src/main/java/com/typesafe/config/impl/ConfigDocumentParser.java +++ b/config/src/main/java/com/typesafe/config/impl/ConfigDocumentParser.java @@ -27,7 +27,6 @@ final class ConfigDocumentParser { } static private final class ParseContext { - private int lineNumber; final private Stack buffer; final private Iterator tokens; final private ConfigSyntax flavor; @@ -42,7 +41,6 @@ final class ConfigDocumentParser { int arrayCount; ParseContext(ConfigSyntax flavor, Iterator tokens) { - lineNumber = 1; buffer = new Stack(); this.tokens = tokens; this.flavor = flavor; @@ -109,8 +107,6 @@ final class ConfigDocumentParser { if (Tokens.isIgnoredWhitespace(t) || isUnquotedWhitespace(t)) { //do nothing } else if (Tokens.isNewline(t)) { - // newline number is the line just ended, so add one - lineNumber = t.lineNumber() + 1; sawSeparatorOrNewline = true; // we want to continue to also eat @@ -280,7 +276,6 @@ final class ConfigDocumentParser { private ConfigNodePath parseKey(Token token) { if (flavor == ConfigSyntax.JSON) { if (Tokens.isValueWithType(token, ConfigValueType.STRING)) { - String key = (String) Tokens.getValue(token).unwrapped(); return PathParser.parsePathNodeExpression(Collections.singletonList(token).iterator(), null); } else { throw parseError(addKeyName("Expecting close brace } or a field name here, got "