]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Fri, 11 Nov 2022 16:43:31 +0000 (17:43 +0100)
committerRoland Häder <roland@mxchange.org>
Fri, 11 Nov 2022 16:45:07 +0000 (17:45 +0100)
- the above if() block is already stopping wrong invocations of this method

src/java/org/mxchange/pizzaapplication/beans/contact/PizzaContactWebRequestBean.java

index 3c2b3a466eef02312b4e5d8c16262c9079a24453..7d5ee7ec1e76625660783fa14202a1dc12ce5c57 100644 (file)
@@ -484,14 +484,6 @@ public class PizzaContactWebRequestBean extends BasePizzaBean implements PizzaCo
                        throw new FaceletException(new IllegalArgumentException("Not all personal data is set, but createContactInstance() is called.")); //NOI18N
                }
 
-               // Required personal data must be set
-               assert (this.isRequiredPersonalDataSet()) : "not all personal data is set"; //NOI18N
-
-               // Generate phone number
-               DialableLandLineNumber phone = new LandLineNumber(this.getLandLineCountry(), this.getLandLineAreaCode(), this.getLandLineNumber());
-               DialableMobileNumber mobile = new MobileNumber(this.getMobileProvider(), this.getMobileNumber());
-               DialableFaxNumber fax = new FaxNumber(this.getFaxCountry(), this.getFaxAreaCode(), this.getFaxNumber());
-
                // Create new contact
                final Contact contact = new UserContact(
                                          this.getPersonalTitle(),