The following document contains the results of FindBugs Report
FindBugs Version is 1.2.0
Threshold is Low
Effort is Default
Classes | Bugs | Errors | Missing Classes |
---|---|---|---|
253 | 67 | 0 | 0 |
Bug | Category | Details | Line |
---|---|---|---|
net.sf.imca.model.AssociationComparator implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | Not available |
Bug | Category | Details | Line |
---|---|---|---|
net.sf.imca.model.BoatBO.BoatBO(EntityManager, NodeList) ignores return value of java.lang.String.equals(Object) | CORRECTNESS | RV_RETURN_VALUE_IGNORED | 129 |
Bug | Category | Details | Line |
---|---|---|---|
Use of non-localized String.toUpperCase() or String.toLowerCase | I18N | DM_CONVERT_CASE | 19 |
net.sf.imca.model.CommitteeMemberComparator implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | Not available |
Bug | Category | Details | Line |
---|---|---|---|
Dead store to dbPerson in net.sf.imca.model.PersonBO.PersonBO(EntityManager, String, String) | STYLE | DLS_DEAD_LOCAL_STORE | 106 |
Use of non-localized String.toUpperCase() or String.toLowerCase | I18N | DM_CONVERT_CASE | 460 |
Use of non-localized String.toUpperCase() or String.toLowerCase | I18N | DM_CONVERT_CASE | 398 |
net.sf.imca.model.PersonBO.PersonBO(EntityManager, NodeList) checks to see if result of String.indexOf is positive | STYLE | RV_CHECK_FOR_POSITIVE_INDEXOF | 226 |
Bug | Category | Details | Line |
---|---|---|---|
net.sf.imca.model.entities.MembershipTypeEntity.getValidFrom() may expose internal representation by returning MembershipTypeEntity.validFrom | MALICIOUS_CODE | EI_EXPOSE_REP | 69 |
net.sf.imca.model.entities.MembershipTypeEntity.getValidTo() may expose internal representation by returning MembershipTypeEntity.validTo | MALICIOUS_CODE | EI_EXPOSE_REP | 77 |
net.sf.imca.model.entities.MembershipTypeEntity.setValidFrom(Date) may expose internal representation by storing an externally mutable object into MembershipTypeEntity.validFrom | MALICIOUS_CODE | EI_EXPOSE_REP2 | 73 |
net.sf.imca.model.entities.MembershipTypeEntity.setValidTo(Date) may expose internal representation by storing an externally mutable object into MembershipTypeEntity.validTo | MALICIOUS_CODE | EI_EXPOSE_REP2 | 81 |
Bug | Category | Details | Line |
---|---|---|---|
net.sf.imca.model.entities.SailEntity.getMeasuredDate() may expose internal representation by returning SailEntity.measuredDate | MALICIOUS_CODE | EI_EXPOSE_REP | 93 |
net.sf.imca.model.entities.SailEntity.setMeasuredDate(Date) may expose internal representation by storing an externally mutable object into SailEntity.measuredDate | MALICIOUS_CODE | EI_EXPOSE_REP2 | 97 |
Bug | Category | Details | Line |
---|---|---|---|
Should net.sf.imca.services.CommitteeService.getAllAssociations() return a zero length array rather than null? | STYLE | PZLA_PREFER_ZERO_LENGTH_ARRAYS | 125 |
Should net.sf.imca.services.CommitteeService.getCommitteeMemberships(PersonBO) return a zero length array rather than null? | STYLE | PZLA_PREFER_ZERO_LENGTH_ARRAYS | 94 |
Should net.sf.imca.services.CommitteeService.getEditableMembershipTypes(PersonBO) return a zero length array rather than null? | STYLE | PZLA_PREFER_ZERO_LENGTH_ARRAYS | 474 |
Should net.sf.imca.services.CommitteeService.getMembershipList(PersonBO, Date) return a zero length array rather than null? | STYLE | PZLA_PREFER_ZERO_LENGTH_ARRAYS | 81 |
Should net.sf.imca.services.CommitteeService.getMembershipRequestList(PersonBO) return a zero length array rather than null? | STYLE | PZLA_PREFER_ZERO_LENGTH_ARRAYS | 237 |
Should net.sf.imca.services.CommitteeService.getOficialIMCACommitteeMemberships(PersonBO) return a zero length array rather than null? | STYLE | PZLA_PREFER_ZERO_LENGTH_ARRAYS | 106 |
Bug | Category | Details | Line |
---|---|---|---|
net.sf.imca.services.ImportData.WEBSITE_HOST isn't final but should be | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | 49 |
net.sf.imca.services.ImportData.WEBSITE_PROTOCAL isn't final but should be | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | 47 |
Private method net.sf.imca.services.ImportData.getNodeListForDataFile(String, String) is never called | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 111-127 |
Bug | Category | Details | Line |
---|---|---|---|
Should net.sf.imca.services.JoinImcaService.getAreasForCountry(String) return a zero length array rather than null? | STYLE | PZLA_PREFER_ZERO_LENGTH_ARRAYS | 101 |
Should net.sf.imca.services.JoinImcaService.getImcaMemberships(PersonBO) return a zero length array rather than null? | STYLE | PZLA_PREFER_ZERO_LENGTH_ARRAYS | 206 |
Should net.sf.imca.services.JoinImcaService.selectAssociations(String) return a zero length array rather than null? | STYLE | PZLA_PREFER_ZERO_LENGTH_ARRAYS | 66 |
Redundant nullcheck of association, which is known to be non-null in net.sf.imca.services.JoinImcaService.getJoinableAssociation(String, String) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 163 |
Bug | Category | Details | Line |
---|---|---|---|
net.sf.imca.services.LoginRegisterService.register(String, String, String, String, String, String) checks to see if result of String.indexOf is positive | STYLE | RV_CHECK_FOR_POSITIVE_INDEXOF | 96 |
Bug | Category | Details | Line |
---|---|---|---|
net.sf.imca.services.ReflectionUtil.setEntityValuesFromParameterMap(Object, Hashtable) might ignore java.lang.Exception | BAD_PRACTICE | DE_MIGHT_IGNORE | 171 |
net.sf.imca.services.ReflectionUtil.setEntityValuesFromParameterMap(Object, Hashtable) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 169 |
Redundant nullcheck of value, which is known to be non-null in net.sf.imca.services.ReflectionUtil.setEntityValuesFromParameterMap(Object, Hashtable) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 151 |
Exception is caught when Exception is not thrown in net.sf.imca.services.ReflectionUtil.setEntityValuesFromParameterMap(Object, Hashtable) | STYLE | REC_CATCH_EXCEPTION | 171 |
Bug | Category | Details | Line |
---|---|---|---|
net.sf.imca.services.Service.startTransaction() might ignore java.lang.Exception | BAD_PRACTICE | DE_MIGHT_IGNORE | 58 |
Bug | Category | Details | Line |
---|---|---|---|
Method net.sf.imca.services.UiService.getMembersWithWebsites() invokes inefficient Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 92 |
Method net.sf.imca.services.UiService.getMembersWithWebsites() invokes inefficient Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 98 |
Should net.sf.imca.services.UiService.getAssociationsWithWebsites() return a zero length array rather than null? | STYLE | PZLA_PREFER_ZERO_LENGTH_ARRAYS | 67 |
Should net.sf.imca.services.UiService.getMembersWithWebsites() return a zero length array rather than null? | STYLE | PZLA_PREFER_ZERO_LENGTH_ARRAYS | 113 |
Bug | Category | Details | Line |
---|---|---|---|
Class net.sf.imca.taglibs.Fleets defines non-transient non-serializable instance field asssociations | BAD_PRACTICE | SE_BAD_FIELD | Not available |
Fleets.asssociations not initialized in constructor | STYLE | UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR | Not available |
Bug | Category | Details | Line |
---|---|---|---|
Redundant nullcheck of net.sf.imca.taglibs.ImcaNationalCommittee.committee, which is known to be non-null in net.sf.imca.taglibs.ImcaNationalCommittee.doStartTag() | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 44 |
Class net.sf.imca.taglibs.ImcaNationalCommittee defines non-transient non-serializable instance field committee | BAD_PRACTICE | SE_BAD_FIELD | Not available |
ImcaNationalCommittee.committee not initialized in constructor | STYLE | UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR | Not available |
Bug | Category | Details | Line |
---|---|---|---|
Class net.sf.imca.taglibs.Riders defines non-transient non-serializable instance field persons | BAD_PRACTICE | SE_BAD_FIELD | Not available |
Riders.persons not initialized in constructor | STYLE | UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR | Not available |
Bug | Category | Details | Line |
---|---|---|---|
Invocation of toString on an array in net.sf.imca.web.DataAdminServlet.doEntityForm(PrintWriter, Object) | CORRECTNESS | DMI_INVOKING_TOSTRING_ON_ARRAY | 183 |
Invocation of toString on an array in net.sf.imca.web.DataAdminServlet.doTableRow(PrintWriter, Object) | CORRECTNESS | DMI_INVOKING_TOSTRING_ON_ARRAY | 346 |
Bug | Category | Details | Line |
---|---|---|---|
Use of non-localized String.toUpperCase() or String.toLowerCase | I18N | DM_CONVERT_CASE | 91 |
net.sf.imca.web.RidersDataServlet is Serializable; consider declaring a serialVersionUID | BAD_PRACTICE | SE_NO_SERIALVERSIONID | Not available |
Bug | Category | Details | Line |
---|---|---|---|
net.sf.imca.web.backingbeans.CommitteeBean.getEndDate() may expose internal representation by returning CommitteeBean.endDate | MALICIOUS_CODE | EI_EXPOSE_REP | 188 |
net.sf.imca.web.backingbeans.CommitteeBean.getMemberList() may expose internal representation by returning CommitteeBean.memberList | MALICIOUS_CODE | EI_EXPOSE_REP | 212 |
net.sf.imca.web.backingbeans.CommitteeBean.getRefDate() may expose internal representation by returning CommitteeBean.refDate | MALICIOUS_CODE | EI_EXPOSE_REP | 309 |
net.sf.imca.web.backingbeans.CommitteeBean.getStartDate() may expose internal representation by returning CommitteeBean.startDate | MALICIOUS_CODE | EI_EXPOSE_REP | 180 |
net.sf.imca.web.backingbeans.CommitteeBean.setEndDate(Date) may expose internal representation by storing an externally mutable object into CommitteeBean.endDate | MALICIOUS_CODE | EI_EXPOSE_REP2 | 192 |
net.sf.imca.web.backingbeans.CommitteeBean.setMemberList(MembershipEntity[]) may expose internal representation by storing an externally mutable object into CommitteeBean.memberList | MALICIOUS_CODE | EI_EXPOSE_REP2 | 216 |
net.sf.imca.web.backingbeans.CommitteeBean.setRefDate(Date) may expose internal representation by storing an externally mutable object into CommitteeBean.refDate | MALICIOUS_CODE | EI_EXPOSE_REP2 | 313 |
net.sf.imca.web.backingbeans.CommitteeBean.setStartDate(Date) may expose internal representation by storing an externally mutable object into CommitteeBean.startDate | MALICIOUS_CODE | EI_EXPOSE_REP2 | 184 |
Bug | Category | Details | Line |
---|---|---|---|
Method net.sf.imca.web.backingbeans.JoinBean.updateMembershipTypeItems() invokes inefficient Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 117 |
net.sf.imca.web.backingbeans.JoinBean.getAreaItems() may expose internal representation by returning JoinBean.areaItems | MALICIOUS_CODE | EI_EXPOSE_REP | 90 |
net.sf.imca.web.backingbeans.JoinBean.getMembershipTypeItems() may expose internal representation by returning JoinBean.membershipTypeItems | MALICIOUS_CODE | EI_EXPOSE_REP | 104 |
Bug | Category | Details | Line |
---|---|---|---|
Dead store to webUser in net.sf.imca.web.backingbeans.LoginBean.actionLogout() | STYLE | DLS_DEAD_LOCAL_STORE | 75 |
Bug | Category | Details | Line |
---|---|---|---|
Dead store to association in net.sf.imca.web.backingbeans.MemTypeBean.setCountryCode(String) | STYLE | DLS_DEAD_LOCAL_STORE | 99 |
net.sf.imca.web.backingbeans.MemTypeBean.getMembershipTypeItems() may expose internal representation by returning MemTypeBean.membershipTypeItems | MALICIOUS_CODE | EI_EXPOSE_REP | 126 |
net.sf.imca.web.backingbeans.MemTypeBean.setMembershipTypeItems(SelectItem[]) may expose internal representation by storing an externally mutable object into MemTypeBean.membershipTypeItems | MALICIOUS_CODE | EI_EXPOSE_REP2 | 130 |
Bug | Category | Details | Line |
---|---|---|---|
net.sf.imca.web.backingbeans.MembershipTableModel.getMembershipData() may expose internal representation by returning MembershipTableModel.membershipData | MALICIOUS_CODE | EI_EXPOSE_REP | 20 |
net.sf.imca.web.backingbeans.MembershipTableModel.setMembershipData(MembershipTableModel$MembershipEntityData[]) may expose internal representation by storing an externally mutable object into MembershipTableModel.membershipData | MALICIOUS_CODE | EI_EXPOSE_REP2 | 26 |
Unread field: net.sf.imca.web.backingbeans.MembershipTableModel.model | PERFORMANCE | URF_UNREAD_FIELD | 11 |
Bug | Category | Details | Line |
---|---|---|---|
Should net.sf.imca.web.backingbeans.MembershipTableModel$MembershipEntityData be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | Not available |