From e03711ab7bc75f1de9f2b107966fa8e1af7f5404 Mon Sep 17 00:00:00 2001 From: jochen Date: Mon, 3 May 1999 10:57:42 +0000 Subject: [PATCH] minor changes git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@747 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/flow/CreateNewConstructor.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/jode/jode/flow/CreateNewConstructor.java b/jode/jode/flow/CreateNewConstructor.java index d17d5f2..58b3317 100644 --- a/jode/jode/flow/CreateNewConstructor.java +++ b/jode/jode/flow/CreateNewConstructor.java @@ -131,15 +131,16 @@ public class CreateNewConstructor { optDupX2.depth = 0; Expression newExpr = new ConstructorOperator - (constrCall.getClassType(), constrCall.getMethodType(), - dup == null); + (constrCall, dup == null); if (constrExpr instanceof ComplexExpression) { Expression[] subs = ((ComplexExpression)constrExpr).getSubExpressions(); - for (int i=subs.length - 1; i>=1; i--) - if (!(subs[i] instanceof NopOperator)) - newExpr = newExpr.addOperand(subs[i]); + for (int i=subs.length - 1; i>=1; i--) { + if (subs[i] instanceof NopOperator) + break; + newExpr = newExpr.addOperand(subs[i]); + } } ic.setInstruction(newExpr); return true;