Typo fix.
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Wed, 11 Oct 2017 14:46:56 +0000 (17:46 +0300)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Wed, 11 Oct 2017 14:46:56 +0000 (17:46 +0300)
src/main/java/eu/svjatoslav/commons/string/tokenizer/Tokenizer.java

index cd5e5c0..4855c18 100755 (executable)
@@ -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.");
     }