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
stable
jochen 26 years ago
parent b40b90e65f
commit 26340e1f1f
  1. 6
      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;
}
}

Loading…
Cancel
Save