The following document contains the results of FindBugs Report
FindBugs Version is 1.1.1
Threshold is Low
Effort is Default
Classes | Bugs | Errors | Missing Classes |
---|---|---|---|
240 | 23 | 8 | 19 |
Bug | Category | Details | Line |
---|---|---|---|
com.sourceforge.jpatterns.core.JPEngineFactory is Serializable; consider declaring a serialVersionUID | BAD_PRACTICE | SE_NO_SERIALVERSIONID | Not available |
Bug | Category | Details | Line |
---|---|---|---|
Method com.sourceforge.jpatterns.core.JPEngineImpl.getPattern(String,String) invokes dubious String.toUpperCase() or String.toLowerCase; use the Locale parameterized version instead | I18N | DM_CONVERT_CASE | 107 |
Bug | Category | Details | Line |
---|---|---|---|
Write to static field com.sourceforge.jpatterns.core.configuration.JPConfiguratorImpl.useOnlyCustomConsumerConfigIfPresent from instance method com.sourceforge.jpatterns.core.configuration.JPConfiguratorImpl.initConfiguration() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 145 |
Write to static field com.sourceforge.jpatterns.core.configuration.JPConfiguratorImpl.useOnlyCustomFrameworkConfigIfPresent from instance method com.sourceforge.jpatterns.core.configuration.JPConfiguratorImpl.initConfiguration() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 143 |
Bug | Category | Details | Line |
---|---|---|---|
Method com.sourceforge.jpatterns.core.configuration.PropertiesManagerImpl.getCustomBundle(String) catches Exception, but Exception is not thrown in the try block and RuntimeException is not explicitly caught | STYLE | REC_CATCH_EXCEPTION | 321 |
Method com.sourceforge.jpatterns.core.configuration.PropertiesManagerImpl.getDefaultBundle(String) catches Exception, but Exception is not thrown in the try block and RuntimeException is not explicitly caught | STYLE | REC_CATCH_EXCEPTION | 291 |
Write to static field com.sourceforge.jpatterns.core.configuration.PropertiesManagerImpl.isInitialized from instance method com.sourceforge.jpatterns.core.configuration.PropertiesManagerImpl.initConfigs() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 94 |
Write to static field com.sourceforge.jpatterns.core.configuration.PropertiesManagerImpl.isInitialized from instance method com.sourceforge.jpatterns.core.configuration.PropertiesManagerImpl.initConfigs() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 115 |
Write to static field com.sourceforge.jpatterns.core.configuration.PropertiesManagerImpl.useOnlyCustomPropsIfPresent from instance method com.sourceforge.jpatterns.core.configuration.PropertiesManagerImpl.initUseOnlyCustomConfigIfPresent() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 161 |
Write to static field com.sourceforge.jpatterns.core.configuration.PropertiesManagerImpl.useOnlyCustomPropsIfPresent from instance method com.sourceforge.jpatterns.core.configuration.PropertiesManagerImpl.initUseOnlyCustomConfigIfPresent() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 170 |
Write to static field com.sourceforge.jpatterns.core.configuration.PropertiesManagerImpl.useOnlyCustomPropsIfPresent from instance method com.sourceforge.jpatterns.core.configuration.PropertiesManagerImpl.initUseOnlyCustomConfigIfPresent() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 180 |
Bug | Category | Details | Line |
---|---|---|---|
The field name com.sourceforge.jpatterns.core.configuration.model.JPatternsConfigBeansBuilderImpl.OverrideNotDependingOnPriority doesn't start with an lower case letter | BAD_PRACTICE | NM_FIELD_NAMING_CONVENTION | Not available |
The field name com.sourceforge.jpatterns.core.configuration.model.JPatternsConfigBeansBuilderImpl.OverridingDepth doesn't start with an lower case letter | BAD_PRACTICE | NM_FIELD_NAMING_CONVENTION | Not available |
Field not initialized in constructor: com.sourceforge.jpatterns.core.configuration.model.JPatternsConfigBeansBuilderImpl.OverridingDepth | STYLE | UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR | Not available |
Method com.sourceforge.jpatterns.core.configuration.model.JPatternsConfigBeansBuilderImpl.fill(JPatternsConfigBaseBean,java.util.List) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 175 |
Method com.sourceforge.jpatterns.core.configuration.model.JPatternsConfigBeansBuilderImpl.fill(JPatternsConfigBaseBean,java.util.List) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 178 |
Bug | Category | Details | Line |
---|---|---|---|
Dead store to result in method com.sourceforge.jpatterns.utils.CastorUtils.toString(com.sourceforge.jpatterns.schema.CastorSectionType,com.sourceforge.jpatterns.schema.CastorNameScopePriorityType) | STYLE | DLS_DEAD_LOCAL_STORE | 549 |
Method com.sourceforge.jpatterns.utils.CastorUtils.extractCastorNameScopePriorityTypeObjects(com.sourceforge.jpatterns.schema.CastorSectionType) catches Exception, but Exception is not thrown in the try block and RuntimeException is not explicitly caught | STYLE | REC_CATCH_EXCEPTION | 202 |
Method com.sourceforge.jpatterns.utils.CastorUtils.extractCastorSectionTypeObjects(com.sourceforge.jpatterns.schema.JPatternsConfig) catches Exception, but Exception is not thrown in the try block and RuntimeException is not explicitly caught | STYLE | REC_CATCH_EXCEPTION | 157 |
Method com.sourceforge.jpatterns.utils.CastorUtils.getJPatternsConfig(java.io.File) catches Exception, but Exception is not thrown in the try block and RuntimeException is not explicitly caught | STYLE | REC_CATCH_EXCEPTION | 83 |
Bug | Category | Details | Line |
---|---|---|---|
com.sourceforge.jpatterns.utils.JPatternsPropsUtils.getPropertiesManagerImplementation() might ignore java.lang.Exception | BAD_PRACTICE | DE_MIGHT_IGNORE | 102 |
com.sourceforge.jpatterns.utils.JPatternsPropsUtils.customBundle should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | Not available |
com.sourceforge.jpatterns.utils.JPatternsPropsUtils.defaultBundle should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | Not available |