From: Roland Haeder Date: Thu, 15 Oct 2015 10:18:26 +0000 (+0200) Subject: ignored for i18n X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5057c5ae247b3c5f3c8eb584b4ef977590d98903;p=addressbook-war.git ignored for i18n Signed-off-by:Roland Häder --- diff --git a/src/java/org/mxchange/addressbook/beans/user/UserWebBean.java b/src/java/org/mxchange/addressbook/beans/user/UserWebBean.java index 7c9c5f64..06a727b7 100644 --- a/src/java/org/mxchange/addressbook/beans/user/UserWebBean.java +++ b/src/java/org/mxchange/addressbook/beans/user/UserWebBean.java @@ -237,10 +237,10 @@ public class UserWebBean implements UserWebController { // Make sure the entry is not added yet if (this.userNameList.contains(user.getUserName())) { // Abort here - throw new IllegalArgumentException(MessageFormat.format("User name {0} already added.", user.getUserName())); + throw new IllegalArgumentException(MessageFormat.format("User name {0} already added.", user.getUserName())); //NOI18N } else if (this.emailAddressList.contains(user.getUserContact().getContactEmailAddress())) { // Already added - throw new IllegalArgumentException(MessageFormat.format("Email address {0} already added.", user.getUserContact().getContactEmailAddress())); + throw new IllegalArgumentException(MessageFormat.format("Email address {0} already added.", user.getUserContact().getContactEmailAddress())); //NOI18N } // Add user name @@ -367,16 +367,16 @@ public class UserWebBean implements UserWebController { // Now the number must be given if (phone.getPhoneAreaCode() == null) { // Is null - throw new NullPointerException("phone.phoneAreaCode is null"); + throw new NullPointerException("phone.phoneAreaCode is null"); //NOI18N } else if (phone.getPhoneAreaCode() < 1) { // Abort here - throw new IllegalArgumentException("phone.phoneAreaCode is zero or below."); + throw new IllegalArgumentException("phone.phoneAreaCode is zero or below."); //NOI18N } else if (phone.getPhoneNumber() == null) { // Is null - throw new NullPointerException("phone.phoneNumber is null"); + throw new NullPointerException("phone.phoneNumber is null"); //NOI18N } else if (phone.getPhoneNumber() < 1) { // Abort here - throw new IllegalArgumentException("phone.phoneNumber is zero or below."); + throw new IllegalArgumentException("phone.phoneNumber is zero or below."); //NOI18N } // Set phone number @@ -388,16 +388,16 @@ public class UserWebBean implements UserWebController { // Now the number must be given if (fax.getPhoneAreaCode() == null) { // Is null - throw new NullPointerException("fax.phoneAreaCode is null"); + throw new NullPointerException("fax.phoneAreaCode is null"); //NOI18N } else if (fax.getPhoneAreaCode() < 1) { // Abort here - throw new IllegalArgumentException("fax.phoneAreaCode is zero or below."); + throw new IllegalArgumentException("fax.phoneAreaCode is zero or below."); //NOI18N } else if (fax.getPhoneNumber() == null) { // Is null - throw new NullPointerException("fax.phoneNumber is null"); + throw new NullPointerException("fax.phoneNumber is null"); //NOI18N } else if (fax.getPhoneNumber() < 1) { // Abort here - throw new IllegalArgumentException("fax.phoneNumber is zero or below."); + throw new IllegalArgumentException("fax.phoneNumber is zero or below."); //NOI18N } // Set fax number @@ -409,10 +409,10 @@ public class UserWebBean implements UserWebController { // Is the number set? if (cellphone.getPhoneNumber() == null) { // Is null - throw new NullPointerException("cellphone.phoneNumber is null"); + throw new NullPointerException("cellphone.phoneNumber is null"); //NOI18N } else if (cellphone.getPhoneNumber() < 1) { // Abort here - throw new IllegalArgumentException("cellphone.phoneNumber is zero or below."); + throw new IllegalArgumentException("cellphone.phoneNumber is zero or below."); //NOI18N } // Set cellphone number @@ -440,16 +440,16 @@ public class UserWebBean implements UserWebController { // event should not be null if (null == event) { // Throw NPE - throw new NullPointerException("event is null"); + throw new NullPointerException("event is null"); //NOI18N } else if (event.getUser() == null) { // Throw NPE again - throw new NullPointerException("event.user is null"); + throw new NullPointerException("event.user is null"); //NOI18N } else if (event.getUser().getUserId() == null) { // userId is null - throw new NullPointerException("event.user.userId is null"); + throw new NullPointerException("event.user.userId is null"); //NOI18N } else if (event.getUser().getUserId() < 1) { // Not avalid id - throw new IllegalArgumentException(MessageFormat.format("userId of user={0} is not valid: {1}", event.getUser(), event.getUser().getUserId())); + throw new IllegalArgumentException(MessageFormat.format("userId of user={0} is not valid: {1}", event.getUser(), event.getUser().getUserId())); //NOI18N } // Get user instance