FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 3.0.0

Threshold is

Effort is min

Summary

Classes Bugs Errors Missing Classes
135 23 0 0

org.andromda.core.cartridge.Cartridge

Bug Category Details Line Priority
Exceptional return value of java.io.File.delete() ignored in org.andromda.core.cartridge.Cartridge.writeResource(Resource, URL) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 622 Medium

org.andromda.core.common.ClassUtils

Bug Category Details Line Priority
The class name org.andromda.core.common.ClassUtils shadows the simple name of the superclass org.apache.commons.lang.ClassUtils BAD_PRACTICE NM_SAME_SIMPLE_NAME_AS_SUPERCLASS 23-392 High

org.andromda.core.common.ComponentContainer

Bug Category Details Line Priority
Write to static field org.andromda.core.common.ComponentContainer.instance from instance method org.andromda.core.common.ComponentContainer.shutdown() STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 582 High

org.andromda.core.common.ExceptionRecorder

Bug Category Details Line Priority
Found reliance on default encoding in org.andromda.core.common.ExceptionRecorder.record(String, Throwable, String): new java.io.FileWriter(File) I18N DM_DEFAULT_ENCODING 143 High
Exceptional return value of java.io.File.mkdir() ignored in org.andromda.core.common.ExceptionRecorder.<static initializer for ExceptionRecorder>() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 242 Medium
org.andromda.core.common.ExceptionRecorder.getUniqueName(String) calls Thread.sleep() with a lock held MT_CORRECTNESS SWL_SLEEP_WITH_LOCK_HELD 209 Medium

org.andromda.core.common.Introspector

Bug Category Details Line Priority
Null passed for nonnull parameter of getReadMethod(Object, String) in org.andromda.core.common.Introspector.internalGetProperty(Object, String) CORRECTNESS NP_NULL_PARAM_DEREF 507 Medium
Null passed for nonnull parameter of getWriteMethod(Object, String) in org.andromda.core.common.Introspector.internalSetProperty(Object, String, Object) CORRECTNESS NP_NULL_PARAM_DEREF 579 Medium
Write to static field org.andromda.core.common.Introspector.instance from instance method org.andromda.core.common.Introspector.shutdown() STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 610 High

org.andromda.core.common.ResourceUtils

Bug Category Details Line Priority
Exceptional return value of java.io.File.mkdirs() ignored in org.andromda.core.common.ResourceUtils.makeDirectories(File) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 441 Medium

org.andromda.core.common.ResourceWriter

Bug Category Details Line Priority
Null passed for nonnull parameter of writeStringToFile(String, String, boolean) in org.andromda.core.common.ResourceWriter.writeStringToFile(String, File) CORRECTNESS NP_NULL_PARAM_DEREF 90 Medium

org.andromda.core.common.XmlObjectFactory

Bug Category Details Line Priority
Null passed for nonnull parameter of getObject(String, URL) in org.andromda.core.common.XmlObjectFactory.getObject(URL) CORRECTNESS NP_NULL_PARAM_DEREF 234 Medium

org.andromda.core.configuration.Configuration

Bug Category Details Line Priority
Found reliance on default encoding in org.andromda.core.configuration.Configuration.getInstance(InputStream): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 50 High

org.andromda.core.engine.ModelProcessor

Bug Category Details Line Priority
Write to static field org.andromda.core.engine.ModelProcessor.modelValidation from instance method org.andromda.core.engine.ModelProcessor.setModelValidation(boolean) STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 603 High

org.andromda.core.mapping.Mapping

Bug Category Details Line Priority
Found reliance on default encoding in org.andromda.core.mapping.Mapping.getTo(): new java.io.FileReader(String) I18N DM_DEFAULT_ENCODING 70 High

org.andromda.core.mapping.Mappings

Bug Category Details Line Priority
Found reliance on default encoding in org.andromda.core.mapping.Mappings.getInstance(File): new java.io.FileReader(File) I18N DM_DEFAULT_ENCODING 208 High
org.andromda.core.mapping.Mappings.getInstance(File) may fail to clean up java.io.Reader on checked exception EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE 208 Medium

org.andromda.core.metafacade.MetafacadeFactory

Bug Category Details Line Priority
Write to static field org.andromda.core.metafacade.MetafacadeFactory.instance from instance method org.andromda.core.metafacade.MetafacadeFactory.shutdown() STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 798 High

org.andromda.core.metafacade.ModelValidationMessage

Bug Category Details Line Priority
org.andromda.core.metafacade.ModelValidationMessage.equals(Object) fails for subtypes BAD_PRACTICE EQ_GETCLASS_AND_CLASS_CONSTANT 183 Medium

org.andromda.core.namespace.NamespaceComponents

Bug Category Details Line Priority
Write to static field org.andromda.core.namespace.NamespaceComponents.instance from instance method org.andromda.core.namespace.NamespaceComponents.shutdown() STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 342 High

org.andromda.core.profile.Profile

Bug Category Details Line Priority
Write to static field org.andromda.core.profile.Profile.instance from instance method org.andromda.core.profile.Profile.shutdown() STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 214 High

org.andromda.core.transformation.XslTransformer

Bug Category Details Line Priority
Exception is caught when Exception is not thrown in org.andromda.core.transformation.XslTransformer.transform(String, Transformation[]) STYLE REC_CATCH_EXCEPTION 100 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.andromda.core.transformation.XslTransformer.transform(String, Transformation[]) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 79 Medium