test case for
private byte @Nullable [] getBytes(){ return null; }
This commit is contained in:
@ -1435,8 +1435,8 @@ void ClassOrInterfaceBodyDeclaration():
|
||||
| LOOKAHEAD(3) EnumDeclaration(modifiers)
|
||||
| LOOKAHEAD( [ TypeParameters() ] <IDENTIFIER> "(" ) ConstructorDeclaration(modifiers)
|
||||
| LOOKAHEAD( Type() <IDENTIFIER> ( "[" "]" )* ( "," | "=" | ";" ) ) FieldDeclaration(modifiers)
|
||||
| MethodDeclaration(modifiers)
|
||||
| AnnotationTypeDeclaration(modifiers)
|
||||
| LOOKAHEAD(2) MethodDeclaration(modifiers)
|
||||
| LOOKAHEAD(2) AnnotationTypeDeclaration(modifiers)
|
||||
)
|
||||
|
|
||||
";"
|
||||
@ -1488,7 +1488,7 @@ void MethodDeclaration(int modifiers) :
|
||||
{jjtThis.setModifiers(modifiers);}
|
||||
{
|
||||
[ TypeParameters() ]
|
||||
ResultType() MethodDeclarator() [ "throws" NameList() ]
|
||||
[(Annotation() {checkForBadTypeAnnotations();})+] ResultType() MethodDeclarator() [ "throws" NameList() ]
|
||||
( Block() | ";" )
|
||||
}
|
||||
|
||||
@ -1564,9 +1564,9 @@ void Type():
|
||||
void ReferenceType():
|
||||
{}
|
||||
{
|
||||
PrimitiveType() ( LOOKAHEAD(2) "[" "]" { jjtThis.bumpArrayDepth(); })+
|
||||
PrimitiveType() ((Annotation() {checkForBadTypeAnnotations();})*) ( LOOKAHEAD(2) "[" "]" { jjtThis.bumpArrayDepth(); })+
|
||||
|
|
||||
( ClassOrInterfaceType() (Annotation() {checkForBadTypeAnnotations();})*) ( LOOKAHEAD(2) "[" "]" { jjtThis.bumpArrayDepth(); })*
|
||||
( ClassOrInterfaceType()) ((Annotation() {checkForBadTypeAnnotations();})*) ( LOOKAHEAD(2) "[" "]" { jjtThis.bumpArrayDepth(); })*
|
||||
}
|
||||
|
||||
void ClassOrInterfaceType():
|
||||
|
@ -172,6 +172,10 @@ public class ParserCornerCases18 {
|
||||
public Object @Nullable [] testAnnotationsToArrayElements() {
|
||||
return null;
|
||||
}
|
||||
|
||||
private byte @Nullable [] getBytes(){
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user