spoon.vsuite.findbugs.dm |
|
Java Source File Name | Type | Comment |
AnnotationIsNotVisible.java | Class | Dm: Can't use reflection to check for presence of annotation with default
retention (DMI_ANNOTATION_IS_NOT_VISIBLE_TO_REFLECTION) Unless an annotation
has itself been annotated with a \@Retention other than the default of
source-only retention, the annotation isn't retained in the classfile and
can't be observed using reflection (e.g., by using the isAnnotationPresent
method). |
BooleanCtor.java | Class | Dm: Method invokes dubious Boolean constructor; use Boolean.valueOf(...)
instead (DM_BOOLEAN_CTOR) Creating new instances of java.lang.Boolean wastes
memory, since Boolean objects are immutable and there are only two useful
values of this type. |
ConvertCase.java | Class | Dm: Method invokes dubious String.toUpperCase() or String.toLowerCase; use
the Locale parameterized version instead (DM_CONVERT_CASE) A String is being
converted to upper or lowercase, using the platform's default encoding. |
Exit.java | Class | Dm: Method invokes System.exit(...) (DM_EXIT) Invoking System.exit shuts down
the entire Java virtual machine. |
RunFinalizersOnExit.java | Class | Dm: Method invokes runFinalizersOnExit, one of the most dangerous methods in
the Java libraries. |