From 71d41b4d48772c9eb61efb1410baf170ca825bb9 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Fri, 5 Jul 2019 13:10:34 -0400 Subject: [PATCH] Comment empty blocks. --- .../commons/collections4/map/AbstractReferenceMap.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/collections4/map/AbstractReferenceMap.java b/src/main/java/org/apache/commons/collections4/map/AbstractReferenceMap.java index e52facbf1..21fa492ca 100644 --- a/src/main/java/org/apache/commons/collections4/map/AbstractReferenceMap.java +++ b/src/main/java/org/apache/commons/collections4/map/AbstractReferenceMap.java @@ -302,7 +302,9 @@ public abstract class AbstractReferenceMap extends AbstractHashedMap public void clear() { super.clear(); // drain the queue - while (queue.poll() != null) {} // NOPMD + while (queue.poll() != null) { + // empty + } } //----------------------------------------------------------------------- @@ -734,6 +736,7 @@ public abstract class AbstractReferenceMap extends AbstractHashedMap * This is the callback for custom "after purge" logic */ protected void onPurge() { + // empty } /**