<div dir="ltr">I was sharing some code with Daniel today and he mentioned that maybe the same approach could be used to make @NotNull and other constraints enforce the conditions at runtime. It's a combination of the new type annotations feature of Java 8 [1] and Spring AOP. Let me know if you're interested and I'll share some gists to clarify how it could work.<div><br></div><div>Thanks,</div><div>Marvin</div><div><br></div><div>[1] <a href="https://dzone.com/articles/java-8-type-annotations">https://dzone.com/articles/java-8-type-annotations</a></div><div><br></div></div>