changeset 2386:c3c8c2f84232

Remove superfluous space before type annotations. Display type annotations on type parameters.
author wmdietl
date Thu, 04 Apr 2013 17:44:18 -0700
parents ea9d569f4e14
children 58cee2b8890b
files src/share/classes/com/sun/tools/javac/tree/Pretty.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/javac/tree/Pretty.java	Thu Apr 04 17:43:24 2013 -0700
+++ b/src/share/classes/com/sun/tools/javac/tree/Pretty.java	Thu Apr 04 17:44:18 2013 -0700
@@ -261,8 +261,6 @@
     }
 
     public void printTypeAnnotations(List<JCAnnotation> trees) throws IOException {
-        if (trees.nonEmpty())
-            print(" ");
         for (List<JCAnnotation> l = trees; l.nonEmpty(); l = l.tail) {
             printExpr(l.head);
             print(" ");
@@ -1304,6 +1302,9 @@
 
     public void visitTypeParameter(JCTypeParameter tree) {
         try {
+            if (tree.annotations.nonEmpty()) {
+                this.printTypeAnnotations(tree.annotations);
+            }
             print(tree.name);
             if (tree.bounds.nonEmpty()) {
                 print(" extends ");