SpotBugs Report

Project Information

Project: ActiveMQ :: Pool

SpotBugs version: 4.8.3

Code analyzed:



Metrics

212 lines of code analyzed, in 11 classes, in 1 packages.

Metric Total Density*
High Priority Warnings 3 14.15
Medium Priority Warnings 2 9.43
Total Warnings 5 23.58

(* Defects per Thousand lines of non-commenting source statements)



Contents

Summary

Warning Type Number
Bad practice Warnings 5
Total 5

Warnings

Click on a warning row to see full context information.

Bad practice Warnings

Code Warning
Nm The class name org.apache.activemq.pool.PooledConnection shadows the simple name of the superclass org.apache.activemq.jms.pool.PooledConnection
Nm The class name org.apache.activemq.pool.PooledConnectionFactory shadows the simple name of the superclass org.apache.activemq.jms.pool.PooledConnectionFactory
Nm The class name org.apache.activemq.pool.XaPooledConnectionFactory shadows the simple name of the superclass org.apache.activemq.jms.pool.XaPooledConnectionFactory
SnVI org.apache.activemq.pool.JcaPooledConnectionFactory is Serializable; consider declaring a serialVersionUID
SnVI org.apache.activemq.pool.XaPooledConnectionFactory is Serializable; consider declaring a serialVersionUID

Details

NM_SAME_SIMPLE_NAME_AS_SUPERCLASS: Class names shouldn't shadow simple name of superclass

This class has a simple name that is identical to that of its superclass, except that its superclass is in a different package (e.g., alpha.Foo extends beta.Foo). This can be exceptionally confusing, create lots of situations in which you have to look at import statements to resolve references and creates many opportunities to accidentally define methods that do not override methods in their superclasses.

SE_NO_SERIALVERSIONID: Class is Serializable, but doesn't define serialVersionUID

This class implements the Serializable interface, but does not define a serialVersionUID field.  A change as simple as adding a reference to a .class object will add synthetic fields to the class, which will unfortunately change the implicit serialVersionUID (e.g., adding a reference to String.class will generate a static field class$java$lang$String). Also, different source code to bytecode compilers may use different naming conventions for synthetic variables generated for references to class objects or inner classes. To ensure interoperability of Serializable across versions, consider adding an explicit serialVersionUID.