From 10fab5b77a04f5c89e4ad7fe6937055d36c4d1ee Mon Sep 17 00:00:00 2001 From: Durai46 <86647861+Durai46@users.noreply.github.com> Date: Mon, 23 Aug 2021 15:43:33 +0530 Subject: Update WithExample_pre.jpage updated NonNull check --- website/usageExamples/WithExample_pre.jpage | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'website/usageExamples') diff --git a/website/usageExamples/WithExample_pre.jpage b/website/usageExamples/WithExample_pre.jpage index 2f78020a..f03ee891 100644 --- a/website/usageExamples/WithExample_pre.jpage +++ b/website/usageExamples/WithExample_pre.jpage @@ -6,8 +6,7 @@ public class WithExample { @With(AccessLevel.PROTECTED) @NonNull private final String name; @With private final int age; - public WithExample(String name, int age) { - if (name == null) throw new NullPointerException(); + public WithExample(@NonNull String name, int age) { this.name = name; this.age = age; } -- cgit