From 236c88fc5cb2444af353bec6370b43b915ed8fdb Mon Sep 17 00:00:00 2001 From: peichhorn Date: Mon, 5 Sep 2011 21:53:58 +0200 Subject: fixed Issue 271: @NotNull annotations should introduce a null check --- website/features/GetterSetter.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'website') diff --git a/website/features/GetterSetter.html b/website/features/GetterSetter.html index 3e3530ef..51a1f514 100644 --- a/website/features/GetterSetter.html +++ b/website/features/GetterSetter.html @@ -58,7 +58,7 @@ Any variation on boolean will not result in using the is prefix instead of the get prefix; for example, returning java.lang.Boolean results in a get prefix, not an is prefix.

- Any annotations named @NonNull (case insensitive) on the field are interpreted as: This field must not ever hold + Any annotations named @NonNull or @NotNull (case insensitive) on the field are interpreted as: This field must not ever hold null. Therefore, these annotations result in an explicit null check in the generated setter. Also, these annotations (as well as any annotation named @Nullable or @CheckForNull) are copied to setter parameter and getter method.

-- cgit