From c97784e9bfbfec58140d36d4fa2ea286c683ae79 Mon Sep 17 00:00:00 2001 From: dev-mlb <19797865+dev-mlb@users.noreply.github.com> Date: Fri, 18 Oct 2024 12:39:35 -0400 Subject: [PATCH] errorprone :: ConstantField for PickupQueue (#982) --- src/main/java/emissary/pickup/PickupQueue.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/emissary/pickup/PickupQueue.java b/src/main/java/emissary/pickup/PickupQueue.java index ee7e17c72e..5512f376c7 100755 --- a/src/main/java/emissary/pickup/PickupQueue.java +++ b/src/main/java/emissary/pickup/PickupQueue.java @@ -24,7 +24,7 @@ public class PickupQueue { * MAX_QUE_SIZE huge because then we use too much memory. Some feeds put stuff on the Que in blocks. If our que is a * prime numbered size they cannot fill it completely, which will help prevent blocking maybe. */ - private int MAX_QUE_SIZE = 19; + private int maxQueSize = 19; /** * Normal pickup queue creation @@ -37,7 +37,7 @@ public PickupQueue() {} * @param maxSize the maximum size the queue can grow to */ public PickupQueue(int maxSize) { - MAX_QUE_SIZE = maxSize; + maxQueSize = maxSize; } /** @@ -109,6 +109,6 @@ public synchronized WorkBundle deque() { * @return true iff there is room for num items */ public boolean canHold(int num) { - return getQueSize() + num <= MAX_QUE_SIZE; + return getQueSize() + num <= maxQueSize; } }