ConstOperator is simpler

Print new line after /* fall through */


git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@456 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 73ea320fbf
commit 8e762d9d2e
  1. 9
      jode/jode/flow/CaseBlock.java

@ -155,19 +155,18 @@ public class CaseBlock extends StructuredBlock {
}
if (isFallThrough) {
writer.tab();
writer.print("/* fall through */");
writer.println("/* fall through */");
writer.untab();
}
writer.print("default:");
} else {
if (isFallThrough) {
writer.tab();
writer.print("/* fall through */");
writer.println("/* fall through */");
writer.untab();
}
ConstOperator constOp = new ConstOperator
(((SwitchBlock)outer).getInstruction().getType(),
Integer.toString(value));
ConstOperator constOp = new ConstOperator(new Integer(value));
constOp.setType(((SwitchBlock)outer).getInstruction().getType());
constOp.makeInitializer();
writer.print("case " + constOp.toString() + ":");
}

Loading…
Cancel
Save