Skip to content

Commit 8e06a76

Browse files
committed
Fix JarClassEntry equals implementation
1 parent 6394018 commit 8e06a76

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ defaultTasks 'clean', 'licenseFormat', 'build'
1616
// Project information
1717
allprojects {
1818
group = 'blue.lapis.nocturne'
19-
version = '1.1.1'
19+
version = '1.1.2'
2020

2121
sourceCompatibility = '1.8'
2222
targetCompatibility = '1.8'

src/main/java/blue/lapis/nocturne/jar/model/JarClassEntry.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,12 @@ public Map<MethodSignature, MethodSignature> getCurrentMethods() {
204204

205205
@Override
206206
public boolean equals(Object otherObject) {
207-
return otherObject instanceof JarClassEntry && hashCode() == otherObject.hashCode();
207+
return otherObject instanceof JarClassEntry && getName().equals(((JarClassEntry) otherObject).getName());
208208
}
209209

210210
@Override
211211
public int hashCode() {
212-
return Objects.hash(getName());
212+
return Objects.hash(JarClassEntry.class, getName());
213213
}
214214

215215
private static void showDecompileDialog() {

0 commit comments

Comments
 (0)