I am playing GWT. I am looking for basic argument checking. I do not require invariants or result ensures. What I am interested about it best practises on the topic.
For example, in c# I use one of this options:
if (arg1 != null) throw new ArgumentNulException....; // Official for public API;
Args.NotNull(arg1); // Home grown.
Contracts.Requires(arg1 != null); // Internal contract validation.
What is the best place for me to start?
Ok, what I found for now.