Fix try with final resource

This commit is contained in:
gonzalo
2017-10-18 08:50:06 -03:00
parent 53210842c8
commit c00400ef77

View File

@ -2253,7 +2253,7 @@ void Resources() :
void Resource() :
{}
{
LOOKAHEAD(2) ( ( "final" | Annotation() )* Type() VariableDeclaratorId() "=" Expression() )
LOOKAHEAD(2) ( ( "final" {jjtThis.setFinal(true);} | Annotation() )* Type() VariableDeclaratorId() "=" Expression() )
|
Name() {checkForBadConciseTryWithResourcesUsage();}
}