/todo-list-immutable

todo-list-immutable

Primary LanguageJavaOtherNOASSERTION


-- principals : --

--> immutables objects final classes and final private properties use guava for immutable collections defensive copy for mutable object (date) in getter and constructor check immutability at runtime with jcabi aspect @Immutable (see junit test) doesn't allow classes to have any non-private, non-final properties in order to be called truly immutable a property with a type that is an interface, that child interface has to be annotated with @Immutable --> avoid null manual check input in constructor with guava mark object with @Nonull and check code with findbugs --> maximum quality code well commented unit tests with well named methods java methods well named qulice (mvn com.qulice:qulice-maven-plugin:check)


-- To do : --


-- Doc : --

http://aspects.jcabi.com/annotation-immutable.html http://aspects.jcabi.com/example-weaving.html