Updates after editor feedback
This commit is contained in:
parent
e15f2fc7dd
commit
5a31640528
|
@ -14,7 +14,7 @@ public class Customer {
|
|||
@Size(min = 5, max = 200)
|
||||
private String lastName;
|
||||
|
||||
public Customer(@Size(min = 5, max = 200) @NotNull String firstName, @Size(min = 5, max = 200) String lastName) {
|
||||
public Customer(@Size(min = 5, max = 200) @NotNull String firstName, @Size(min = 5, max = 200) @NotNull String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue