From a4c6c4774a7eabe7269be18ac299ad3ae35b999b Mon Sep 17 00:00:00 2001 From: Graham Date: Sat, 10 Aug 2019 22:10:02 +0100 Subject: [PATCH] Add toString() to IntValue --- .../main/java/dev/openrs2/deob/analysis/IntValue.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/deob/src/main/java/dev/openrs2/deob/analysis/IntValue.java b/deob/src/main/java/dev/openrs2/deob/analysis/IntValue.java index deee8619..946cd626 100644 --- a/deob/src/main/java/dev/openrs2/deob/analysis/IntValue.java +++ b/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(); + } }