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:
@@ -95,6 +95,9 @@ The <action> type attribute can be add,update,fix,remove.
|
|||||||
<action type="fix" dev="ggregory" due-to="Gary Gregory">
|
<action type="fix" dev="ggregory" due-to="Gary Gregory">
|
||||||
Fix SpotBugs [ERROR] High: Found reliance on default encoding in org.apache.commons.logging.LogFactory.initDiagnostics(): new java.io.PrintStream(OutputStream) [org.apache.commons.logging.LogFactory] At LogFactory.java:[line 1205] DM_DEFAULT_ENCODING.
|
Fix SpotBugs [ERROR] High: Found reliance on default encoding in org.apache.commons.logging.LogFactory.initDiagnostics(): new java.io.PrintStream(OutputStream) [org.apache.commons.logging.LogFactory] At LogFactory.java:[line 1205] DM_DEFAULT_ENCODING.
|
||||||
</action>
|
</action>
|
||||||
|
<action type="fix" dev="ggregory" due-to="Gary Gregory">
|
||||||
|
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.
|
||||||
|
</action>
|
||||||
<!-- UPDATE -->
|
<!-- UPDATE -->
|
||||||
<action dev="ggregory" type="update" due-to="Gary Gregory">
|
<action dev="ggregory" type="update" due-to="Gary Gregory">
|
||||||
Bump Java from 6 to 8.
|
Bump Java from 6 to 8.
|
||||||
|
|||||||
@@ -265,7 +265,7 @@ public final class WeakHashtable extends Hashtable {
|
|||||||
private static final int PARTIAL_PURGE_COUNT = 10;
|
private static final int PARTIAL_PURGE_COUNT = 10;
|
||||||
|
|
||||||
/** ReferenceQueue we check for GC'd keys. */
|
/** 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. */
|
/** Counter used to control how often we purge gc'd entries. */
|
||||||
private int changeCount;
|
private int changeCount;
|
||||||
|
|||||||
Reference in New Issue
Block a user