From 2e39ca26fdb7678f9598a1d0304954a658d6cb56 Mon Sep 17 00:00:00 2001 From: Graham Date: Mon, 29 Jul 2019 20:34:07 +0100 Subject: [PATCH] Improve naming and typing in Member{Desc,Ref}.equals() methods --- asm/src/main/java/dev/openrs2/asm/MemberDesc.java | 6 +++--- asm/src/main/java/dev/openrs2/asm/MemberRef.java | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/asm/src/main/java/dev/openrs2/asm/MemberDesc.java b/asm/src/main/java/dev/openrs2/asm/MemberDesc.java index 0ac941aa..82c641fa 100644 --- a/asm/src/main/java/dev/openrs2/asm/MemberDesc.java +++ b/asm/src/main/java/dev/openrs2/asm/MemberDesc.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 diff --git a/asm/src/main/java/dev/openrs2/asm/MemberRef.java b/asm/src/main/java/dev/openrs2/asm/MemberRef.java index 3bff5559..d5005f5b 100644 --- a/asm/src/main/java/dev/openrs2/asm/MemberRef.java +++ b/asm/src/main/java/dev/openrs2/asm/MemberRef.java @@ -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