From 64c359d3c1d2347001e5c6becb1d7561457f52cc Mon Sep 17 00:00:00 2001 From: lclc98 Date: Sat, 2 Jul 2016 18:04:57 +1000 Subject: Renamed Fields --- src/main/java/cuchaz/enigma/analysis/EntryReference.java | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'src/main/java/cuchaz/enigma/analysis/EntryReference.java') diff --git a/src/main/java/cuchaz/enigma/analysis/EntryReference.java b/src/main/java/cuchaz/enigma/analysis/EntryReference.java index eb58388..6a7a4bf 100644 --- a/src/main/java/cuchaz/enigma/analysis/EntryReference.java +++ b/src/main/java/cuchaz/enigma/analysis/EntryReference.java @@ -24,7 +24,7 @@ public class EntryReference { public E entry; public C context; - private boolean m_isNamed; + private boolean sourceName; public EntryReference(E entry, String sourceName) { this(entry, sourceName, null); @@ -38,16 +38,16 @@ public class EntryReference { this.entry = entry; this.context = context; - m_isNamed = sourceName != null && sourceName.length() > 0; + this.sourceName = sourceName != null && sourceName.length() > 0; if (entry instanceof ConstructorEntry && ConstructorNonNames.contains(sourceName)) { - m_isNamed = false; + this.sourceName = false; } } public EntryReference(E entry, C context, EntryReference other) { this.entry = entry; this.context = context; - m_isNamed = other.m_isNamed; + this.sourceName = other.sourceName; } public ClassEntry getLocationClassEntry() { @@ -58,7 +58,7 @@ public class EntryReference { } public boolean isNamed() { - return m_isNamed; + return this.sourceName; } public Entry getNameableEntry() { @@ -91,10 +91,7 @@ public class EntryReference { @Override public boolean equals(Object other) { - if (other instanceof EntryReference) { - return equals((EntryReference) other); - } - return false; + return other instanceof EntryReference && equals((EntryReference) other); } public boolean equals(EntryReference other) { -- cgit v1.2.3