From 5057c5ae247b3c5f3c8eb584b4ef977590d98903 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 15 Oct 2015 12:18:26 +0200 Subject: [PATCH] =?utf8?q?ignored=20for=20i18n=20Signed-off-by:Roland=20H?= =?utf8?q?=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../addressbook/beans/user/UserWebBean.java | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) 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 -- 2.39.5