Commit bc1bdc21 authored by Jamie Mansfield's avatar Jamie Mansfield

Eliminate double-spaced output from Textifier

parent f86d1ce7
...@@ -4,7 +4,11 @@ build/ ...@@ -4,7 +4,11 @@ build/
# Files generated by Eclipse # Files generated by Eclipse
**/.classpath **/.classpath
**/.gitignore
**/.project **/.project
**/.settings/ **/.settings/
**/bin/ **/bin/
# Files generated by IntelliJ
.idea/
out/
*.iml
...@@ -191,15 +191,16 @@ public class Textifier extends Printer { ...@@ -191,15 +191,16 @@ public class Textifier extends Printer {
if (superName != null && !"java/lang/Object".equals(superName)) { if (superName != null && !"java/lang/Object".equals(superName)) {
stringBuilder.append(" extends "); stringBuilder.append(" extends ");
appendDescriptor(INTERNAL_NAME, superName); appendDescriptor(INTERNAL_NAME, superName);
stringBuilder.append(' ');
} }
if (interfaces != null && interfaces.length > 0) { if (interfaces != null && interfaces.length > 0) {
stringBuilder.append(" implements "); stringBuilder.append(" implements ");
for (int i = 0; i < interfaces.length; ++i) { for (int i = 0; i < interfaces.length; ++i) {
appendDescriptor(INTERNAL_NAME, interfaces[i]); appendDescriptor(INTERNAL_NAME, interfaces[i]);
if (i != interfaces.length - 1) {
stringBuilder.append(' '); stringBuilder.append(' ');
} }
} }
}
stringBuilder.append(" {\n\n"); stringBuilder.append(" {\n\n");
text.add(stringBuilder.toString()); text.add(stringBuilder.toString());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment