Use isEmpty.

This commit is contained in:
Photon-GitHub 2022-07-25 14:10:36 +02:00
parent 90272260ac
commit 16eccfaaf7
1 changed files with 1 additions and 1 deletions

View File

@ -347,7 +347,7 @@ public class AsyncFilterManager implements AsynchronousManager {
@Override
public boolean hasAsynchronousListeners(PacketEvent packet) {
Collection<?> list = getProcessingQueue(packet).getListener(packet.getPacketType());
return list != null && list.size() > 0;
return list != null && !list.isEmpty();
}
/**