aboutsummaryrefslogtreecommitdiff
path: root/website2/usageExamples/NonNullExample_post.jpage
blob: 24175e06ca04875d80d2453614a4137c9f3362ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import lombok.NonNull;

public class NonNullExample extends Something {
	private String name;
	
	public NonNullExample(@NonNull Person person) {
		super("Hello");
		if (person == null) {
			throw new NullPointerException("person");
		}
		this.name = person.getName();
	}
}