changeset 2338:b066dc51366f

Make sure the output for un-annotated arrays is the same as previously.
author wmdietl
date Wed, 20 Mar 2013 18:34:42 +0100
parents abddf1820015
children b714520030c4
files src/share/classes/com/sun/tools/javac/code/Printer.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/javac/code/Printer.java	Wed Mar 20 15:00:49 2013 +0100
+++ b/src/share/classes/com/sun/tools/javac/code/Printer.java	Wed Mar 20 18:34:42 2013 +0100
@@ -204,8 +204,9 @@
             if (arrel.isAnnotated()) {
                 sb.append(' ');
                 sb.append(arrel.getAnnotationMirrors());
+                sb.append(' ');
             }
-            sb.append(" []");
+            sb.append("[]");
             arrel = arrel.unannotatedType();
             arrel = ((ArrayType) arrel).elemtype;
         }