JamesIry / jADT

A spoonful of ADT in your Java.
http://jamesiry.github.com/jADT/index.html
Apache License 2.0
49 stars 4 forks source link

Provide a way of specifying that null should be rejected. #36

Open rickyclarkson opened 12 years ago

rickyclarkson commented 12 years ago

E.g., Foo = Bar(@NotNull String x) - this would generate a null check in the Bar constructor and possibly in its factory method.

JamesIry commented 12 years ago

Agreed. I haven't had time time to work on JADT in awhile now, but the ongoing project is annotations and a not null annotation is one on the list.