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) { if (isFallThrough) {
writer.tab(); writer.tab();
writer.print("/* fall through */"); writer.println("/* fall through */");
writer.untab(); writer.untab();
} }
writer.print("default:"); writer.print("default:");
} else { } else {
if (isFallThrough) { if (isFallThrough) {
writer.tab(); writer.tab();
writer.print("/* fall through */"); writer.println("/* fall through */");
writer.untab(); writer.untab();
} }
ConstOperator constOp = new ConstOperator ConstOperator constOp = new ConstOperator(new Integer(value));
(((SwitchBlock)outer).getInstruction().getType(), constOp.setType(((SwitchBlock)outer).getInstruction().getType());
Integer.toString(value));
constOp.makeInitializer(); constOp.makeInitializer();
writer.print("case " + constOp.toString() + ":"); writer.print("case " + constOp.toString() + ":");
} }

Loading…
Cancel
Save