From fb5f728420aaf7bd108d39db12e2fec8113f9e77 Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Wed, 11 Oct 2017 17:46:56 +0300 Subject: [PATCH] Typo fix. --- .../eu/svjatoslav/commons/string/tokenizer/Tokenizer.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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."); } -- 2.20.1