From 29d9c8afcc15875337cd1f48ec36193406584daf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 31 Jul 2017 22:34:50 +0200 Subject: [PATCH] Please cherry-pick: - BaseLongeValidator has been renamed to BaseNumberValidator as it also validates Integer and Short MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../validator/addressbook/AddressbookIdValidator.java | 4 ++-- .../phone/number/AddressbookPhoneNumberValidator.java | 4 ++-- .../validator/user/AddressbookUserIdValidator.java | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/java/org/mxchange/addressbook/validator/addressbook/AddressbookIdValidator.java b/src/java/org/mxchange/addressbook/validator/addressbook/AddressbookIdValidator.java index 4ac7388d..26eca6b6 100644 --- a/src/java/org/mxchange/addressbook/validator/addressbook/AddressbookIdValidator.java +++ b/src/java/org/mxchange/addressbook/validator/addressbook/AddressbookIdValidator.java @@ -28,7 +28,7 @@ import javax.naming.NamingException; import org.mxchange.addressbook.model.addressbook.AddressbookSessionBeanRemote; import org.mxchange.jaddressbook.exceptions.AddressbookNotFoundException; import org.mxchange.jaddressbook.model.addressbook.Addressbook; -import org.mxchange.jcoreee.validator.number.BaseLongValidator; +import org.mxchange.jcoreee.validator.number.BaseNumberValidator; /** * A validator for address book id verification @@ -36,7 +36,7 @@ import org.mxchange.jcoreee.validator.number.BaseLongValidator; * @author Roland Häder */ @FacesValidator ("AddressbookIdValidator") -public class AddressbookIdValidator extends BaseLongValidator { +public class AddressbookIdValidator extends BaseNumberValidator { /** * Serial number diff --git a/src/java/org/mxchange/addressbook/validator/phone/number/AddressbookPhoneNumberValidator.java b/src/java/org/mxchange/addressbook/validator/phone/number/AddressbookPhoneNumberValidator.java index f2d33568..1d0ce778 100644 --- a/src/java/org/mxchange/addressbook/validator/phone/number/AddressbookPhoneNumberValidator.java +++ b/src/java/org/mxchange/addressbook/validator/phone/number/AddressbookPhoneNumberValidator.java @@ -21,7 +21,7 @@ import javax.faces.context.FacesContext; import javax.faces.validator.FacesValidator; import javax.faces.validator.Validator; import javax.faces.validator.ValidatorException; -import org.mxchange.jcoreee.validator.number.BaseLongValidator; +import org.mxchange.jcoreee.validator.number.BaseNumberValidator; /** * A validator for phone, fax and mobile numbers @@ -29,7 +29,7 @@ import org.mxchange.jcoreee.validator.number.BaseLongValidator; * @author Roland Häder */ @FacesValidator ("PhoneNumberValidator") -public class AddressbookPhoneNumberValidator extends BaseLongValidator implements Validator { +public class AddressbookPhoneNumberValidator extends BaseNumberValidator implements Validator { /** * Serial number diff --git a/src/java/org/mxchange/addressbook/validator/user/AddressbookUserIdValidator.java b/src/java/org/mxchange/addressbook/validator/user/AddressbookUserIdValidator.java index aca92c0b..3d7dccaa 100644 --- a/src/java/org/mxchange/addressbook/validator/user/AddressbookUserIdValidator.java +++ b/src/java/org/mxchange/addressbook/validator/user/AddressbookUserIdValidator.java @@ -27,7 +27,7 @@ import javax.faces.validator.ValidatorException; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; -import org.mxchange.jcoreee.validator.number.BaseLongValidator; +import org.mxchange.jcoreee.validator.number.BaseNumberValidator; import org.mxchange.jusercore.model.user.UserSessionBeanRemote; /** @@ -36,7 +36,7 @@ import org.mxchange.jusercore.model.user.UserSessionBeanRemote; * @author Roland Häder */ @FacesValidator ("UserIdValidator") -public class AddressbookUserIdValidator extends BaseLongValidator implements Validator { +public class AddressbookUserIdValidator extends BaseNumberValidator implements Validator { /** * Remote bean -- 2.39.5