Open derek63 opened 8 years ago
Also, take a pass through fields of this object to see if they're all actually needed (probably not)
Could @Nullable
fields which are optional, as in javax.annotation.Nullable, as the never-implemented-but-widely-adopted JSR 305.
Most projects get this dependency from this:
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>1.3.9</version>
</dependency>
using @Required annotation or something similar. Also enforce that required fields are present before attempting to persist message