diff options
author | Paul Phillips <paulp@improving.org> | 2012-02-18 16:56:10 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-02-18 19:09:15 -0800 |
commit | 0894d3be180aa28f43eed557d29e7b997a78fcfc (patch) | |
tree | 3657511f26575fc39ec03f640f9d2c21ffa7c120 /src/compiler/scala/tools/nsc/javac | |
parent | 2fe570291a41e2701f3118bc0f643a9fa60c476b (diff) | |
download | scala-0894d3be180aa28f43eed557d29e7b997a78fcfc.tar.gz scala-0894d3be180aa28f43eed557d29e7b997a78fcfc.tar.bz2 scala-0894d3be180aa28f43eed557d29e7b997a78fcfc.zip |
Cleanup in aisle New.
More trees created more uniformly.
Diffstat (limited to 'src/compiler/scala/tools/nsc/javac')
-rw-r--r-- | src/compiler/scala/tools/nsc/javac/JavaParsers.scala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/javac/JavaParsers.scala b/src/compiler/scala/tools/nsc/javac/JavaParsers.scala index 0c94e40d68..3490c1f5a8 100644 --- a/src/compiler/scala/tools/nsc/javac/JavaParsers.scala +++ b/src/compiler/scala/tools/nsc/javac/JavaParsers.scala @@ -393,8 +393,7 @@ trait JavaParsers extends ast.parser.ParsersCommon with JavaScanners { // assumed true unless we see public/private/protected var isPackageAccess = true var annots: List[Tree] = Nil - def addAnnot(sym: Symbol) = - annots :+= New(TypeTree(sym.tpe), List(Nil)) + def addAnnot(sym: Symbol) = annots :+= New(sym) while (true) { in.token match { |