diff --git a/src/main/java/net/fabricmc/tinyremapper/IMappingProvider.java b/src/main/java/net/fabricmc/tinyremapper/IMappingProvider.java index 2afc16ed..822ac620 100644 --- a/src/main/java/net/fabricmc/tinyremapper/IMappingProvider.java +++ b/src/main/java/net/fabricmc/tinyremapper/IMappingProvider.java @@ -39,5 +39,20 @@ public Member(String owner, String name, String desc) { public String owner; public String name; public String desc; + + @Override + public int hashCode() { + return (31 * (31 * owner.hashCode()) + name.hashCode()) + desc.hashCode(); + } + + @Override + public boolean equals(Object other) { + if (!(other instanceof Member)) { + return false; + } else { + Member otherMember = (Member) other; + return owner.equals(otherMember.owner) && name.equals(otherMember.owner) && desc.equals(otherMember.desc); + } + } } }