SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 3.1.12

Threshold is

Effort is default

Summary

Classes Bugs Errors Missing Classes
144 21 0 0

org.itracker.model.CustomField

Bug Category Details Line Priority
org.itracker.model.CustomField.DEFAULT_DATE_FORMAT is a static field of type java.text.DateFormat, which isn't thread safe MT_CORRECTNESS STCAL_STATIC_SIMPLE_DATE_FORMAT_INSTANCE Not available High

org.itracker.model.ImportDataModel

Bug Category Details Line Priority
org.itracker.model.ImportDataModel.getImportStatistics() may expose internal representation by returning ImportDataModel.verifyStatistics MALICIOUS_CODE EI_EXPOSE_REP 115 Medium

org.itracker.model.IssueActivityType

Bug Category Details Line Priority
Suspicious comparison of Integer references in org.itracker.model.IssueActivityType.fromCode(Integer) CORRECTNESS RC_REF_COMPARISON 56 High

org.itracker.model.IssueField

Bug Category Details Line Priority
Redundant nullcheck of org.itracker.model.IssueField.dateValue, which is known to be non-null in org.itracker.model.IssueField.formatDate(ResourceBundle) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 243 High

org.itracker.model.Language$LanguageKeyComparator

Bug Category Details Line Priority
org.itracker.model.Language$LanguageKeyComparator implements Comparator but not Serializable BAD_PRACTICE SE_COMPARATOR_SHOULD_BE_SERIALIZABLE 128-131 Medium

org.itracker.model.Language$LanguageValueComparator

Bug Category Details Line Priority
org.itracker.model.Language$LanguageValueComparator implements Comparator but not Serializable BAD_PRACTICE SE_COMPARATOR_SHOULD_BE_SERIALIZABLE 138-144 Medium

org.itracker.model.Permission$PermissionPropertiesComparator

Bug Category Details Line Priority
org.itracker.model.Permission$PermissionPropertiesComparator implements Comparator but not Serializable BAD_PRACTICE SE_COMPARATOR_SHOULD_BE_SERIALIZABLE 134-136 Medium

org.itracker.model.Report

Bug Category Details Line Priority
org.itracker.model.Report.getFileData() may expose internal representation by returning Report.fileData MALICIOUS_CODE EI_EXPOSE_REP 99 Medium
org.itracker.model.Report.setFileData(byte[]) may expose internal representation by storing an externally mutable object into Report.fileData MALICIOUS_CODE EI_EXPOSE_REP2 103 Medium

org.itracker.model.Report$NameComparator

Bug Category Details Line Priority
org.itracker.model.Report$NameComparator implements Comparator but not Serializable BAD_PRACTICE SE_COMPARATOR_SHOULD_BE_SERIALIZABLE 114-118 Medium

org.itracker.model.SystemConfiguration$SystemConfigurationComparator

Bug Category Details Line Priority
org.itracker.model.SystemConfiguration$SystemConfigurationComparator implements Comparator but not Serializable BAD_PRACTICE SE_COMPARATOR_SHOULD_BE_SERIALIZABLE 125-130 Medium

org.itracker.model.User$LoginComparator

Bug Category Details Line Priority
org.itracker.model.User$LoginComparator implements Comparator but not Serializable BAD_PRACTICE SE_COMPARATOR_SHOULD_BE_SERIALIZABLE 276-279 Medium

org.itracker.model.User$NameComparator

Bug Category Details Line Priority
org.itracker.model.User$NameComparator implements Comparator but not Serializable BAD_PRACTICE SE_COMPARATOR_SHOULD_BE_SERIALIZABLE 267-271 Medium

org.itracker.model.util.IssueUtilities

Bug Category Details Line Priority
org.itracker.model.util.IssueUtilities.STANDARD_FIELDS should be package protected MALICIOUS_CODE MS_PKGPROTECT 58 Medium

org.itracker.model.util.PropertiesFileHandler

Bug Category Details Line Priority
org.itracker.model.util.PropertiesFileHandler.addProperties(String) may fail to clean up java.io.InputStream EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION 50 Medium

org.itracker.model.util.UserUtilities

Bug Category Details Line Priority
Dead store to permissionsArray in org.itracker.model.util.UserUtilities.createPermissionArray(User, Project, int[]) STYLE DLS_DEAD_LOCAL_STORE 388 Medium
org.itracker.model.util.UserUtilities.alphabet should be package protected MALICIOUS_CODE MS_PKGPROTECT 34 Medium

org.itracker.persistence.dao.EnumCodeUserType

Bug Category Details Line Priority
org.itracker.persistence.dao.EnumCodeUserType.sqlTypes() may expose internal representation by returning EnumCodeUserType.SQL_TYPES MALICIOUS_CODE EI_EXPOSE_REP 70 Medium

org.itracker.persistence.dao.EnumNameUserType

Bug Category Details Line Priority
org.itracker.persistence.dao.EnumNameUserType.sqlTypes() may expose internal representation by returning EnumNameUserType.SQL_TYPES MALICIOUS_CODE EI_EXPOSE_REP 47 Medium

org.itracker.persistence.dao.EnumOrdinalUserType

Bug Category Details Line Priority
org.itracker.persistence.dao.EnumOrdinalUserType.sqlTypes() may expose internal representation by returning EnumOrdinalUserType.SQL_TYPES MALICIOUS_CODE EI_EXPOSE_REP 58 Medium

org.itracker.persistence.dao.IntBooleanType

Bug Category Details Line Priority
org.itracker.persistence.dao.IntBooleanType.sqlTypes() may expose internal representation by returning IntBooleanType.SQL_TYPES MALICIOUS_CODE EI_EXPOSE_REP 64 Medium

R.Ø.S.A.