From d9837ba577dd0c6d56c83326383f450e35764c90 Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Fri, 13 Sep 2013 18:12:04 +0300 Subject: [PATCH] bugfix --- .classpath | 1 + .gitignore | 2 ++ .project | 13 +++++++++++++ .settings/org.eclipse.jdt.core.prefs | 3 +++ .../inspector/java/methods/Annotation.java | 3 +++ 5 files changed, 22 insertions(+) diff --git a/.classpath b/.classpath index 5adac7b..e4af868 100644 --- a/.classpath +++ b/.classpath @@ -14,6 +14,7 @@ + diff --git a/.gitignore b/.gitignore index 2f7896d..6874e1e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ +/.settings/org.eclipse.wst.common.component +/.settings/org.eclipse.wst.common.project.facet.core.xml target/ diff --git a/.project b/.project index 9a24d02..56ca015 100644 --- a/.project +++ b/.project @@ -5,6 +5,11 @@ + + org.eclipse.wst.common.project.facet.core.builder + + + org.eclipse.jdt.core.javabuilder @@ -15,9 +20,17 @@ + + org.eclipse.wst.validation.validationbuilder + + + + org.eclipse.jem.workbench.JavaEMFNature + org.eclipse.wst.common.modulecore.ModuleCoreNature org.eclipse.m2e.core.maven2Nature org.eclipse.jdt.core.javanature + org.eclipse.wst.common.project.facet.core.nature diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs index 60105c1..69c31cd 100644 --- a/.settings/org.eclipse.jdt.core.prefs +++ b/.settings/org.eclipse.jdt.core.prefs @@ -1,5 +1,8 @@ eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning org.eclipse.jdt.core.compiler.source=1.6 diff --git a/src/main/java/eu/svjatoslav/inspector/java/methods/Annotation.java b/src/main/java/eu/svjatoslav/inspector/java/methods/Annotation.java index 96e0d20..0f12dd4 100644 --- a/src/main/java/eu/svjatoslav/inspector/java/methods/Annotation.java +++ b/src/main/java/eu/svjatoslav/inspector/java/methods/Annotation.java @@ -20,6 +20,9 @@ public class Annotation { while (true) { final TokenizerMatch token = tokenizer.getNextToken(); + if (token == null) + return; + if ("(".equals(token.token)) depth++; if (")".equals(token.token)) -- 2.20.1