diff --git a/jode/jode/flow/CaseBlock.java b/jode/jode/flow/CaseBlock.java index d711be2..3269501 100644 --- a/jode/jode/flow/CaseBlock.java +++ b/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() + ":"); }