You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2019/07/05 17:10:37 UTC
[commons-collections] branch master updated: Comment empty blocks.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-collections.git
The following commit(s) were added to refs/heads/master by this push:
new 71d41b4 Comment empty blocks.
71d41b4 is described below
commit 71d41b4d48772c9eb61efb1410baf170ca825bb9
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Jul 5 13:10:34 2019 -0400
Comment empty blocks.
---
.../org/apache/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 e52facb..21fa492 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<K, V> extends AbstractHashedMap<K, V>
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<K, V> extends AbstractHashedMap<K, V>
* This is the callback for custom "after purge" logic
*/
protected void onPurge() {
+ // empty
}
/**