Skip to content

Commit f0fe313

Browse files
committed
8338564: Remove obsolete AbstractNamedEntry::equals method
Reviewed-by: liach
1 parent 6ff6b09 commit f0fe313

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/java.base/share/classes/jdk/internal/classfile/impl/AbstractPoolEntry.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -534,15 +534,6 @@ public Utf8Entry name() {
534534
public String asInternalName() {
535535
return ref1.stringValue();
536536
}
537-
538-
@Override
539-
public boolean equals(Object o) {
540-
if (o == this) { return true; }
541-
if (o instanceof AbstractNamedEntry ne) {
542-
return tag == ne.tag() && name().equals(ref1());
543-
}
544-
return false;
545-
}
546537
}
547538

548539
public static final class ClassEntryImpl extends AbstractNamedEntry implements ClassEntry {

0 commit comments

Comments
 (0)