8066694: Strange code in JavacParser.java
Reviewed-by: vromero, iris
This commit is contained in:
parent
6c838c568c
commit
36bff6f945
@ -2408,16 +2408,12 @@ public class JavacParser implements Parser {
|
||||
List<JCAnnotation> maybeDimAnnos = typeAnnotationsOpt();
|
||||
int pos = token.pos;
|
||||
nextToken();
|
||||
if (token.kind == RBRACKET) {
|
||||
if (token.kind == RBRACKET) { // no dimension
|
||||
elemtype = bracketsOptCont(elemtype, pos, maybeDimAnnos);
|
||||
} else {
|
||||
if (token.kind == RBRACKET) { // no dimension
|
||||
elemtype = bracketsOptCont(elemtype, pos, maybeDimAnnos);
|
||||
} else {
|
||||
dimAnnotations.append(maybeDimAnnos);
|
||||
dims.append(parseExpression());
|
||||
accept(RBRACKET);
|
||||
}
|
||||
dimAnnotations.append(maybeDimAnnos);
|
||||
dims.append(parseExpression());
|
||||
accept(RBRACKET);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user