BAEL-112 - custom validator - format fixes
This commit is contained in:
@@ -3,7 +3,7 @@ package com.baeldung.model;
|
||||
import com.baeldung.customvalidator.ContactNumberConstraint;
|
||||
|
||||
public class ValidatedPhone {
|
||||
|
||||
|
||||
@ContactNumberConstraint
|
||||
private String phone;
|
||||
|
||||
@@ -15,4 +15,8 @@ public class ValidatedPhone {
|
||||
this.phone = phone;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return phone;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user