The following document contains the results of FindBugs Report
FindBugs Version is 1.3.9
Threshold is low
Effort is min
Class | Bugs |
---|---|
org.apache.myfaces.examples.dynaForm.lib.Person | 9 |
org.apache.myfaces.examples.dynaForm.lib.PersonRelation | 3 |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Equals method for org.apache.myfaces.examples.dynaForm.lib.Person assumes the argument is of type Person | BAD_PRACTICE | BC_EQUALS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTS | 125 | Medium |
org.apache.myfaces.examples.dynaForm.lib.Person.getBirthday() may expose internal representation by returning Person.birthday | MALICIOUS_CODE | EI_EXPOSE_REP | 84 | Medium |
org.apache.myfaces.examples.dynaForm.lib.Person.getCreationDate() may expose internal representation by returning Person.creationDate | MALICIOUS_CODE | EI_EXPOSE_REP | 73 | Medium |
org.apache.myfaces.examples.dynaForm.lib.Person.setBirthday(Date) may expose internal representation by storing an externally mutable object into Person.birthday | MALICIOUS_CODE | EI_EXPOSE_REP2 | 89 | Medium |
org.apache.myfaces.examples.dynaForm.lib.Person.setCreationDate(Date) may expose internal representation by storing an externally mutable object into Person.creationDate | MALICIOUS_CODE | EI_EXPOSE_REP2 | 78 | Medium |
org.apache.myfaces.examples.dynaForm.lib.Person defines equals and uses Object.hashCode() | BAD_PRACTICE | HE_EQUALS_USE_HASHCODE | 125 | High |
org.apache.myfaces.examples.dynaForm.lib.Person.equals(Object) does not check for null argument | BAD_PRACTICE | NP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENT | 125 | High |
org.apache.myfaces.examples.dynaForm.lib.Person is Serializable; consider declaring a serialVersionUID | BAD_PRACTICE | SE_NO_SERIALVERSIONID | 28 | Low |
Person.id not initialized in constructor | STYLE | UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR | Low |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.apache.myfaces.examples.dynaForm.lib.PersonRelation.getLiveTogetherSince() may expose internal representation by returning PersonRelation.liveTogetherSince | MALICIOUS_CODE | EI_EXPOSE_REP | 74 | Medium |
org.apache.myfaces.examples.dynaForm.lib.PersonRelation.setLiveTogetherSince(Date) may expose internal representation by storing an externally mutable object into PersonRelation.liveTogetherSince | MALICIOUS_CODE | EI_EXPOSE_REP2 | 79 | Medium |
org.apache.myfaces.examples.dynaForm.lib.PersonRelation is Serializable; consider declaring a serialVersionUID | BAD_PRACTICE | SE_NO_SERIALVERSIONID | 32 | Low |