-
Model is based on Objects and not primitives that allows nullify requests and have null values for data that wasn’t provided by docker daemon.
-
For null safeness findbugs annotations are used.
-
Every method that may return
null(and we are unsure in any fields as docker daemon may change something) should be annotated with@CheckForNullreturn qualifier fromjavax.annotationpackage. -
Methods that can’t return
nullmust be annotated with@Nonnull. -
The same for Arguments.
-
@Nullablemust be used only for changing inherited (other typed) qualifier.
-
-
Setters in builder style must be prefixed with
withXX. -
All classes should provide
toString()equals()andhashCode()defined methods. -
Javadocs
-
Provide full information on field:
-
For models define API version with
@since {@link RemoteApiVersion#VERSION_1_X}.
-
-
getters/setters should refernce to field
@see #$field.
-
-
TBD, some initial styling already enforced with checkstyle. IDEA/checkstyle file analogues will be provided soon.