mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
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:
parent
cf5fc4c79e
commit
552e338377
2 changed files with 99 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue