8032819: Extra empty line between field declarations for the "-v -c" and "-v -l" combination of options

Reviewed-by: ksrini
This commit is contained in:
Jonathan Gibbons 2014-01-28 14:31:29 -08:00
parent cf5fc4c79e
commit 552e338377
2 changed files with 99 additions and 2 deletions

View file

@ -385,6 +385,8 @@ public class ClassWriter extends BasicWriter {
indent(+1);
boolean showBlank = false;
if (options.showDescriptors)
println("descriptor: " + getValue(f.descriptor));
@ -394,12 +396,12 @@ public class ClassWriter extends BasicWriter {
if (options.showAllAttrs) {
for (Attribute attr: f.attributes)
attrWriter.write(f, attr, constant_pool);
println();
showBlank = true;
}
indent(-1);
if (options.showDisassembled || options.showLineAndLocalVariableTables)
if (showBlank || options.showDisassembled || options.showLineAndLocalVariableTables)
println();
}