diff options
Diffstat (limited to 'src/compiler/scala/tools/nsc/javac/JavaParsers.scala')
-rwxr-xr-x | src/compiler/scala/tools/nsc/javac/JavaParsers.scala | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/compiler/scala/tools/nsc/javac/JavaParsers.scala b/src/compiler/scala/tools/nsc/javac/JavaParsers.scala index 9539cbac8c..5508585678 100755 --- a/src/compiler/scala/tools/nsc/javac/JavaParsers.scala +++ b/src/compiler/scala/tools/nsc/javac/JavaParsers.scala @@ -330,8 +330,8 @@ trait JavaParsers extends JavaScanners { } else t } - def annotations(): List[Annotation] = { - //var annots = new ListBuffer[Annotation] + def annotations(): List[Tree] = { + //var annots = new ListBuffer[Tree] while (in.token == AT) { in.nextToken annotation() @@ -548,9 +548,7 @@ trait JavaParsers extends JavaScanners { if (parentToken == AT && in.token == DEFAULT) { val annot = atPos(pos) { - Annotation( - New(rootId(nme.AnnotationDefaultATTR.toTypeName), List(List())), - List()) + New(rootId(nme.AnnotationDefaultATTR.toTypeName), List(List())) } mods1 = Modifiers(mods1.flags, mods1.privateWithin, annot :: mods1.annotations) skipTo(SEMI) |