]> git.mxchange.org Git - jfinancials-war.git/commitdiff
Removed all clear() methods in request-scoped beans as it makes no sense to clear...
authorRoland Häder <roland@mxchange.org>
Thu, 21 Apr 2016 08:45:09 +0000 (10:45 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 21 Apr 2016 18:29:21 +0000 (20:29 +0200)
src/java/org/mxchange/addressbook/beans/contact/AddressbookAdminContactWebRequestBean.java
src/java/org/mxchange/addressbook/beans/country/AddressbookAdminCountryWebRequestBean.java
src/java/org/mxchange/addressbook/beans/mobileprovider/AddressbookAdminMobileProviderWebRequestBean.java
src/java/org/mxchange/addressbook/beans/phone/AddressbookAdminContactPhoneWebRequestBean.java
src/java/org/mxchange/addressbook/beans/user/AddressbookAdminUserWebRequestBean.java

index 46f154b5c1f95ca78da295db9d622a62c0bcd272..93c7f7e91b9dc3b72316f56b3f4ba125005e129c 100644 (file)
@@ -476,31 +476,4 @@ public class AddressbookAdminContactWebRequestBean implements AddressbookAdminCo
        public void init () {
        }
 
-       /**
-        * Clears this bean
-        */
-       private void clear () {
-               // Clear all
-               this.setContactId(null);
-               this.setBirthday(null);
-               this.setCellphoneCarrier(null);
-               this.setCellphoneNumber(null);
-               this.setCity(null);
-               this.setComment(null);
-               this.setCountry(null);
-               this.setEmailAddress(null);
-               this.setFamilyName(null);
-               this.setFaxAreaCode(null);
-               this.setFaxCountry(null);
-               this.setFaxNumber(null);
-               this.setFirstName(null);
-               this.setGender(null);
-               this.setHouseNumber(null);
-               this.setPhoneAreaCode(null);
-               this.setPhoneCountry(null);
-               this.setPhoneNumber(null);
-               this.setStreet(null);
-               this.setZipCode(null);
-       }
-
 }
index baac32d4c77ebf2be23bf5a8f153e9260ed4d35b..a3e5cad2ea8c319e6b26d5982d40ddc75052dc03 100644 (file)
@@ -146,9 +146,6 @@ public class AddressbookAdminCountryWebRequestBean implements AddressbookAdminCo
 
                // Fire event
                this.addedCountryEvent.fire(new AdminEventCountryAdded(updatedCountry));
-
-               // Clear bean
-               this.clear();
        }
 
        @Override
@@ -222,19 +219,6 @@ public class AddressbookAdminCountryWebRequestBean implements AddressbookAdminCo
                return (!this.allCountries().isEmpty());
        }
 
-       /**
-        * Clears this bean
-        */
-       private void clear () {
-               // Clear all
-               this.setCountryAbroadDialPrefix(null);
-               this.setCountryCode(null);
-               this.setCountryExternalDialPrefix(null);
-               this.setCountryI18nKey(null);
-               this.setCountryIsLocalPrefixRequired(null);
-               this.setCountryPhoneCode(null);
-       }
-
        /**
         * Checks if given country is already added by iterating over the whole list
         * and try to find it.
index 954828dd47fad24f7790d35610dc97e47bd80fc7..78bd2d50062cbb39f163db3c104363c2d1cbaa98 100644 (file)
@@ -129,9 +129,6 @@ public class AddressbookAdminMobileProviderWebRequestBean implements Addressbook
 
                // Fire event
                this.providerAddedEvent.fire(new AdminMobileProviderAddedEvent(updatedProvider));
-
-               // Clear this bean
-               this.clear();
        }
 
        @Override
@@ -184,17 +181,6 @@ public class AddressbookAdminMobileProviderWebRequestBean implements Addressbook
                return (!this.allMobileProvider().isEmpty());
        }
 
-       /**
-        * Clears this bean
-        */
-       private void clear () {
-               // Clear all fields
-               this.setProviderCountry(null);
-               this.setProviderDialPrefix(null);
-               this.setProviderMailPattern(null);
-               this.setProviderName(null);
-       }
-
        /**
         * Checks whether if the given mobile provider is already created by
         * checking both dial prefix and country.
index 7ba2f6c3494c1239f7e099ceab8bf0309ae216ff..57c40db5addc7223dc24e783477da7b96e19a59a 100644 (file)
@@ -157,15 +157,4 @@ public class AddressbookAdminContactPhoneWebRequestBean implements AddressbookAd
                this.landLine = landLine;
        }
 
-       /**
-        * Clears this bean
-        */
-       private void clear () {
-               // Clear all instances
-               this.setCellPhone(null);
-               this.setFax(null);
-               this.setLandLine(null);
-               this.setContact(null);
-       }
-
 }
index 1805a99bcdc1a962bc58eb3b78f54a93a65c0bc6..07612f5bd99e25ff46ea24b00afc25d383739bf0 100644 (file)
@@ -183,9 +183,6 @@ public class AddressbookAdminUserWebRequestBean implements AddressbookAdminUserW
                // Add user to local list
                this.userList.add(updatedUser);
 
-               // Clear all
-               this.clear();
-
                // Clear contact instance
                this.contactController.clear();
        }
@@ -282,16 +279,6 @@ public class AddressbookAdminUserWebRequestBean implements AddressbookAdminUserW
                return user;
        }
 
-       /**
-        * Clears this bean
-        */
-       private void clear () {
-               // Clear all
-               this.setUserName(null);
-               this.setUserPassword(null);
-               this.setUserPasswordRepeat(null);
-       }
-
        /**
         * Checks if same password is entered and that they are not empty.
         * <p>