Closed GoogleCodeExporter closed 9 years ago
This is not only a problem for final variables, see the example below.
The superfluous null checks are negatively influencing our branching code
coverage numbers calculated by CKJM, so a fix would be appreciated!
@EqualsAndHashCode
@Data
public class bla {
@Getter
@NonNull
private String field;
}
Original comment by mike.ros...@gmail.com
on 16 Mar 2015 at 1:53
Duplicate of 681.
There's no guarantee that `field` is not null as you're free to add your own
constructor or setter or use reflection or whatever to change it. So the null
check is necessary.
The only meaningful thing is to make your tool honor some kind of `@Generated`
annotation. See also issue 702.
Original comment by Maaarti...@gmail.com
on 24 Mar 2015 at 4:52
Thanks Maaartinus
Original comment by r.spilker
on 24 Mar 2015 at 8:58
Original issue reported on code.google.com by
c...@honton.org
on 13 Feb 2015 at 6:47