Use common library to read file content.
[javainspect.git] / src / main / java / eu / svjatoslav / inspector / java / methods / Annotation.java
index 94b2232..d3f282f 100755 (executable)
@@ -1,7 +1,7 @@
 /*
  * JavaInspect - Utility to visualize java software
- * Copyright (C) 2013-2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- * 
+ * Copyright (C) 2013-2020, 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
  * or later as published by the Free Software Foundation.
@@ -21,7 +21,7 @@ public class Annotation {
 
         name = tokenizer.getNextToken().token;
 
-        if (!tokenizer.probeNextToken("("))
+        if (!tokenizer.consumeIfNextToken("("))
             return;
 
         int depth = 1;