esbtools / esb-message-admin

GNU General Public License v3.0
5 stars 9 forks source link

Indicate which fields are required in EsbMessage #146

Open derek63 opened 8 years ago

derek63 commented 8 years ago

using @Required annotation or something similar. Also enforce that required fields are present before attempting to persist message

derek63 commented 8 years ago

Also, take a pass through fields of this object to see if they're all actually needed (probably not)

alechenninger commented 8 years ago

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>