Fix SpotBugs [ERROR]

Medium: Class org.apache.commons.logging.impl.WeakHashtable defines non-transient non-serializable instance field queue [org.apache.commons.logging.impl.WeakHashtable] In WeakHashtable.java SE_BAD_FIELD
This commit is contained in:
Gary Gregory committed 2023-11-25 11:59:17 -05:00
1 parent 0f25dd6c0e
commit eb9e4c506f
2 files changed
+4 -1

No files matched your search

@@ -265,7 +265,7 @@ public final class WeakHashtable extends Hashtable {
private static final int PARTIAL_PURGE_COUNT = 10;
/** ReferenceQueue we check for GC'd keys. */
private final ReferenceQueue queue = new ReferenceQueue();
private final transient ReferenceQueue queue = new ReferenceQueue();
/** Counter used to control how often we purge gc'd entries. */
private int changeCount;