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

master
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()) {
return false;
}
MemberDesc fieldRef = (MemberDesc) o;
return name.equals(fieldRef.name) &&
desc.equals(fieldRef.desc);
var memberDesc = (MemberDesc) o;
return name.equals(memberDesc.name) &&
desc.equals(memberDesc.desc);
}
@Override

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

Loading…
Cancel
Save