Project: ActiveMQ :: Pool
SpotBugs version: 4.8.3
Code analyzed:
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)
Warning Type | Number |
---|---|
Bad practice Warnings | 5 |
Total | 5 |
Click on a warning row to see full context information.
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 |
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.
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.