From 51bebb21807fe6cbbbb4bc2f0fdb2bd241b328d1 Mon Sep 17 00:00:00 2001 From: jochen Date: Sat, 31 Oct 1998 14:54:32 +0000 Subject: [PATCH] mayChangeJump is true git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@111 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/flow/BreakBlock.java | 4 ++++ jode/jode/flow/ContinueBlock.java | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/jode/jode/flow/BreakBlock.java b/jode/jode/flow/BreakBlock.java index 29a2673..5123562 100644 --- a/jode/jode/flow/BreakBlock.java +++ b/jode/jode/flow/BreakBlock.java @@ -83,4 +83,8 @@ public class BreakBlock extends StructuredBlock { { writer.println("break"+(label == null ? "" : " "+label) + ";"); } + + public boolean jumpMayBeChanged() { + return true; + } } diff --git a/jode/jode/flow/ContinueBlock.java b/jode/jode/flow/ContinueBlock.java index 932f5c9..035fd34 100644 --- a/jode/jode/flow/ContinueBlock.java +++ b/jode/jode/flow/ContinueBlock.java @@ -76,4 +76,12 @@ public class ContinueBlock extends StructuredBlock { writer.println("continue"+ (continueLabel == null ? "" : " "+continueLabel) + ";"); } + + public boolean needsBraces() { + return false; + } + + public boolean jumpMayBeChanged() { + return true; + } }