From: Svjatoslav Agejenko Date: Wed, 11 Oct 2017 14:46:56 +0000 (+0300) Subject: Typo fix. X-Git-Tag: svjatoslavcommons-1.8~54 X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=fb5f728420aaf7bd108d39db12e2fec8113f9e77;p=svjatoslav_commons.git Typo fix. --- diff --git a/src/main/java/eu/svjatoslav/commons/string/tokenizer/Tokenizer.java b/src/main/java/eu/svjatoslav/commons/string/tokenizer/Tokenizer.java index cd5e5c0..4855c18 100755 --- a/src/main/java/eu/svjatoslav/commons/string/tokenizer/Tokenizer.java +++ b/src/main/java/eu/svjatoslav/commons/string/tokenizer/Tokenizer.java @@ -110,20 +110,20 @@ public class Tokenizer { return result; } - public boolean peekIsOneOf(String [] ... possibilities){ + public boolean peekIsOneOf(String ... possibilities){ TokenizerMatch nextToken = peekNextToken(); - for (String[] possibility : possibilities) + for (String possibility : possibilities) if (possibility.equals(nextToken)) return true; return false; } - public void peekExpectNoneOf(String [] ... possibilities) throws InvalidSyntaxException { + public void peekExpectNoneOf(String ... possibilities) throws InvalidSyntaxException { TokenizerMatch nextToken = peekNextToken(); - for (String[] possibility : possibilities) + for (String possibility : possibilities) if (possibility.equals(nextToken)) throw new InvalidSyntaxException("Not expected \"" + nextToken + "\" here."); }