From 8e762d9d2eff1aa809b3dec97ae92871ddde1de5 Mon Sep 17 00:00:00 2001 From: jochen Date: Sat, 20 Mar 1999 00:30:17 +0000 Subject: [PATCH] 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 --- jode/jode/flow/CaseBlock.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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() + ":"); }