X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Finspector%2Fjava%2Fmethods%2FAnnotation.java;fp=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Finspector%2Fjava%2Fmethods%2FAnnotation.java;h=d4581b0a6b5f155cb23e8e743dc1e1cf6657b920;hb=c680c10ad9057106e23b149246abdd84b41775ee;hp=da600619ec6930074e4679b381b004b61a35ce17;hpb=7520d141e59025fdd93e43f6e86785b451975ecf;p=javainspect.git 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 da60061..d4581b0 100755 --- a/src/main/java/eu/svjatoslav/inspector/java/methods/Annotation.java +++ b/src/main/java/eu/svjatoslav/inspector/java/methods/Annotation.java @@ -15,32 +15,32 @@ import eu.svjatoslav.commons.string.tokenizer.TokenizerMatch; public class Annotation { - private String name; + private String name; - public Annotation(final Tokenizer tokenizer) throws InvalidSyntaxException { + public Annotation(final Tokenizer tokenizer) throws InvalidSyntaxException { - name = tokenizer.getNextToken().token; + name = tokenizer.getNextToken().token; - if (!tokenizer.probeNextToken("(")) - return; + if (!tokenizer.probeNextToken("(")) + return; - int depth = 1; + int depth = 1; - while (true) { - final TokenizerMatch token = tokenizer.getNextToken(); + while (true) { + final TokenizerMatch token = tokenizer.getNextToken(); - if (token == null) - return; + if (token == null) + return; - if ("(".equals(token.token)) - depth++; - if (")".equals(token.token)) - depth--; + if ("(".equals(token.token)) + depth++; + if (")".equals(token.token)) + depth--; - if (depth == 0) - return; - } + if (depth == 0) + return; + } - } + } }