mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-27 20:25:27 +00:00
5a3e9bd804
including docs and changelog.
14 lines
273 B
Plaintext
14 lines
273 B
Plaintext
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();
|
|
}
|
|
}
|