From d58675d5b95e5d59dbaf464dd5847dd1c2ad924f Mon Sep 17 00:00:00 2001 From: Wagyourtail Date: Wed, 31 Jul 2024 05:29:21 -0500 Subject: [PATCH] add some stuff to impl --- .../jvmdg/j12/stub/java_base/J_L_C_ClassDesc.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/java-api/src/java12/java/xyz/wagyourtail/jvmdg/j12/stub/java_base/J_L_C_ClassDesc.java b/java-api/src/java12/java/xyz/wagyourtail/jvmdg/j12/stub/java_base/J_L_C_ClassDesc.java index 8bde1249..0e2ffb30 100644 --- a/java-api/src/java12/java/xyz/wagyourtail/jvmdg/j12/stub/java_base/J_L_C_ClassDesc.java +++ b/java-api/src/java12/java/xyz/wagyourtail/jvmdg/j12/stub/java_base/J_L_C_ClassDesc.java @@ -218,5 +218,15 @@ public boolean equals(Object obj) { if (!(obj instanceof J_L_C_ClassDesc)) return false; return descriptor.equals(((J_L_C_ClassDesc) obj).descriptorString()); } + + @Override + public int hashCode() { + return descriptor.hashCode(); + } + + @Override + public String toString() { + return "ClassDesc[" + displayName() + "]"; + } } }