Migrating to latest svjatoslav-commons.
[javainspect.git] / src / main / java / eu / svjatoslav / inspector / java / methods / Annotation.java
index d4581b0..94b320c 100755 (executable)
@@ -1,6 +1,6 @@
 /*
  * JavaInspect - Utility to visualize java software
- * Copyright (C) 2013-2015, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2013-2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
  * 
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of version 3 of the GNU Lesser General Public License
@@ -21,7 +21,7 @@ public class Annotation {
 
         name = tokenizer.getNextToken().token;
 
-        if (!tokenizer.probeNextToken("("))
+        if (!tokenizer.consumeIfNextToken("("))
             return;
 
         int depth = 1;