From 146e1bfe3517dcb741c493af25f2fe34f6ab33b9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 21 Oct 2022 13:38:08 +0200 Subject: [PATCH] Please cherrry-pick: - this is not an argument/parameter of a method. it might have happened due to a logic error, therefore it is an unexpected state --- .../contact/FinancialsAdminContactWebRequestBean.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/java/org/mxchange/jfinancials/beans/contact/FinancialsAdminContactWebRequestBean.java b/src/java/org/mxchange/jfinancials/beans/contact/FinancialsAdminContactWebRequestBean.java index b4b2fbc7..d7de0732 100644 --- a/src/java/org/mxchange/jfinancials/beans/contact/FinancialsAdminContactWebRequestBean.java +++ b/src/java/org/mxchange/jfinancials/beans/contact/FinancialsAdminContactWebRequestBean.java @@ -466,13 +466,13 @@ public class FinancialsAdminContactWebRequestBean extends BaseFinancialsBean imp throw new NullPointerException("phone.phoneAreaCode is null"); //NOI18N } else if (landLine.getPhoneAreaCode() < 1) { // Abort here - throw new IllegalArgumentException("phone.phoneAreaCode is zero or below."); //NOI18N + throw new IllegalStateException("phone.phoneAreaCode is zero or below."); //NOI18N } else if (landLine.getPhoneNumber() == null) { // Is null throw new NullPointerException("phone.phoneNumber is null"); //NOI18N } else if (landLine.getPhoneNumber() < 1) { // Abort here - throw new IllegalArgumentException("phone.phoneNumber is zero or below."); //NOI18N + throw new IllegalStateException("phone.phoneNumber is zero or below."); //NOI18N } // Set phone number @@ -487,13 +487,13 @@ public class FinancialsAdminContactWebRequestBean extends BaseFinancialsBean imp throw new NullPointerException("fax.phoneAreaCode is null"); //NOI18N } else if (fax.getPhoneAreaCode() < 1) { // Abort here - throw new IllegalArgumentException("fax.phoneAreaCode is zero or below."); //NOI18N + throw new IllegalStateException("fax.phoneAreaCode is zero or below."); //NOI18N } else if (fax.getPhoneNumber() == null) { // 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."); //NOI18N + throw new IllegalStateException("fax.phoneNumber is zero or below."); //NOI18N } // Set fax number @@ -508,7 +508,7 @@ public class FinancialsAdminContactWebRequestBean extends BaseFinancialsBean imp throw new NullPointerException("cmobile.phoneNumber is null"); //NOI18N } else if (mobile.getMobileNumber() < 1) { // Abort here - throw new IllegalArgumentException("cmobile.phoneNumber is zero or below."); //NOI18N + throw new IllegalStateException("cmobile.phoneNumber is zero or below."); //NOI18N } // Set cmobile number -- 2.39.5