Improve naming and typing in Member{Desc,Ref}.equals() methods

bzip2
Graham 5 years ago
parent c1358f6105
commit 2e39ca26fd
  1. 6
      asm/src/main/java/dev/openrs2/asm/MemberDesc.java
  2. 8
      asm/src/main/java/dev/openrs2/asm/MemberRef.java

@ -26,9 +26,9 @@ public final class MemberDesc {
if (o == null || getClass() != o.getClass()) { if (o == null || getClass() != o.getClass()) {
return false; return false;
} }
MemberDesc fieldRef = (MemberDesc) o; var memberDesc = (MemberDesc) o;
return name.equals(fieldRef.name) && return name.equals(memberDesc.name) &&
desc.equals(fieldRef.desc); desc.equals(memberDesc.desc);
} }
@Override @Override

@ -35,10 +35,10 @@ public final class MemberRef {
if (o == null || getClass() != o.getClass()) { if (o == null || getClass() != o.getClass()) {
return false; return false;
} }
MemberRef fieldRef = (MemberRef) o; var memberRef = (MemberRef) o;
return owner.equals(fieldRef.owner) && return owner.equals(memberRef.owner) &&
name.equals(fieldRef.name) && name.equals(memberRef.name) &&
desc.equals(fieldRef.desc); desc.equals(memberRef.desc);
} }
@Override @Override

Loading…
Cancel
Save