remove unnecessary cast

This commit is contained in:
xGinko 2024-07-16 11:50:52 +02:00
parent d0af45fc21
commit c5e274daf9

View File

@ -63,7 +63,7 @@ public final class ExpiringSet<E> extends AbstractSet<E> implements Set<E> {
*/
@Override
public boolean contains(Object item) {
return this.cache.getIfPresent((E) item) != null;
return this.cache.getIfPresent(item) != null;
}
/**