Add toString() to IntValue

master
Graham 5 years ago
parent 6ca8da1cd4
commit a4c6c4774a
  1. 9
      deob/src/main/java/dev/openrs2/deob/analysis/IntValue.java

@ -2,6 +2,7 @@ package dev.openrs2.deob.analysis;
import java.util.Objects;
import com.google.common.base.MoreObjects;
import com.google.common.base.Preconditions;
import org.objectweb.asm.tree.analysis.BasicValue;
import org.objectweb.asm.tree.analysis.Value;
@ -60,4 +61,12 @@ public final class IntValue implements Value {
public int hashCode() {
return Objects.hash(basicValue, intValue);
}
@Override
public String toString() {
return MoreObjects.toStringHelper(this)
.add("basicValue", basicValue)
.add("intValue", intValue)
.toString();
}
}

Loading…
Cancel
Save