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 2024/05/22 12:57:52 UTC
(commons-collections) 08/16: Format nits
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
commit 941a9ff4b652d503c891f21a765dc72c1a481186
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed May 22 08:41:07 2024 -0400
Format nits
---
.../java/org/apache/commons/collections4/map/AbstractHashedMap.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/collections4/map/AbstractHashedMap.java b/src/main/java/org/apache/commons/collections4/map/AbstractHashedMap.java
index e1cec999f..1dc9258ca 100644
--- a/src/main/java/org/apache/commons/collections4/map/AbstractHashedMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/AbstractHashedMap.java
@@ -437,19 +437,23 @@ public class AbstractHashedMap<K, V> extends AbstractMap<K, V> implements Iterab
return super.nextEntry().getValue();
}
}
+
protected static final String NO_NEXT_ENTRY = "No next() entry in the iteration";
protected static final String NO_PREVIOUS_ENTRY = "No previous() entry in the iteration";
-
protected static final String REMOVE_INVALID = "remove() can only be called once after next()";
protected static final String GETKEY_INVALID = "getKey() can only be called after next() and before remove()";
protected static final String GETVALUE_INVALID = "getValue() can only be called after next() and before remove()";
protected static final String SETVALUE_INVALID = "setValue() can only be called after next() and before remove()";
+
/** The default capacity to use */
protected static final int DEFAULT_CAPACITY = 16;
+
/** The default threshold to use */
protected static final int DEFAULT_THRESHOLD = 12;
+
/** The default load factor to use */
protected static final float DEFAULT_LOAD_FACTOR = 0.75f;
+
/** The maximum capacity allowed */
protected static final int MAXIMUM_CAPACITY = 1 << 30;