Merge branch 'issue-206' into pmd/5.5.x

Closes #210 (rebased onto pmd/5.4.x)
This commit is contained in:
Andreas Dangel
2017-01-27 19:44:32 +01:00
3 changed files with 16 additions and 1 deletions

View File

@ -1,4 +1,9 @@
/**
* Change lookahead for AnnotationMethodDeclaration in AnnotationTypeMemberDeclaration.
* Bug #206
*
* Juan Martin Sotuyo Dodero 01/2017
*====================================================================
* Allow method references to specify generics.
* Bug #207
*
@ -2286,7 +2291,7 @@ void AnnotationTypeMemberDeclaration():
{
modifiers = Modifiers()
(
LOOKAHEAD(3) AnnotationMethodDeclaration(modifiers)
LOOKAHEAD(Type() <IDENTIFIER> "(") AnnotationMethodDeclaration(modifiers)
|
ClassOrInterfaceDeclaration(modifiers)
|