From 203ab6c10e7ee34dc32fa985f1d57c8c771626a8 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Tue, 22 Sep 2020 21:28:56 +0200 Subject: [PATCH] Update FloatPriorityQueue.java --- src/main/java/org/warp/commonutils/type/FloatPriorityQueue.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/warp/commonutils/type/FloatPriorityQueue.java b/src/main/java/org/warp/commonutils/type/FloatPriorityQueue.java index fa1fa0d..8fcdd38 100644 --- a/src/main/java/org/warp/commonutils/type/FloatPriorityQueue.java +++ b/src/main/java/org/warp/commonutils/type/FloatPriorityQueue.java @@ -80,7 +80,7 @@ public class FloatPriorityQueue implements Queue { @Override public boolean isEmpty() { - assert contentValues.isEmpty(); + assert contentValues.size() == internalQueue.size(); return internalQueue.isEmpty(); }