Add toString() to IntValue

bzip2
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 java.util.Objects;
import com.google.common.base.MoreObjects;
import com.google.common.base.Preconditions; import com.google.common.base.Preconditions;
import org.objectweb.asm.tree.analysis.BasicValue; import org.objectweb.asm.tree.analysis.BasicValue;
import org.objectweb.asm.tree.analysis.Value; import org.objectweb.asm.tree.analysis.Value;
@ -60,4 +61,12 @@ public final class IntValue implements Value {
public int hashCode() { public int hashCode() {
return Objects.hash(basicValue, intValue); return Objects.hash(basicValue, intValue);
} }
@Override
public String toString() {
return MoreObjects.toStringHelper(this)
.add("basicValue", basicValue)
.add("intValue", intValue)
.toString();
}
} }

Loading…
Cancel
Save