...
- Avoid using Reflection to instantiate inner classes
Wiki Markup -Use a typesafe enum pattern \[Bloch, Item 20\]- (_enum type_ provided, jdk 1.5 onwards, [Docs|http://java.sun.com/j2se/1.5.0/docs/guide/language/enums.html])
- Some of the anti-patterns described in EXC00-J. Handle exceptions appropriately
- Do not hardcode sensitive information (covered)
compareTo()
contract violations like natural ordering that is not consistent withequals
...
Wiki Markup Usage of {{GetResource}} may be unsafe if class is extended \[Findbugs\]
- Do not serialize/deserialize resource handles
- Do not sign encrypted data (
SignedObject
should be first, followed bySealedObject
)
...