From 26340e1f1f9d3757394b7ca1620c420490ddec01 Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 9 Apr 1999 08:08:54 +0000 Subject: [PATCH] Clear newObj if another value is set. git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@540 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/jvm/Value.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jode/jode/jvm/Value.java b/jode/jode/jvm/Value.java index 2ce831b..ee030bd 100644 --- a/jode/jode/jvm/Value.java +++ b/jode/jode/jvm/Value.java @@ -33,6 +33,7 @@ public class Value { } public void setObject(Object obj) { + newObj = null; value = obj; } @@ -43,6 +44,7 @@ public class Value { } public void setInt(int i) { + newObj = null; value = new Integer(i); } @@ -51,6 +53,7 @@ public class Value { } public void setLong(long i) { + newObj = null; value = new Long(i); } @@ -59,6 +62,7 @@ public class Value { } public void setFloat(float i) { + newObj = null; value = new Float(i); } @@ -67,6 +71,7 @@ public class Value { } public void setDouble(double i) { + newObj = null; value = new Double(i); } @@ -91,4 +96,3 @@ public class Value { return newObj != null ? newObj.toString() : ""+value; } } -