]> git.mxchange.org Git - jjobs-lib.git/commitdiff
Cleanup:
authorRoland Haeder <roland@mxchange.org>
Sat, 12 Mar 2016 11:44:48 +0000 (12:44 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 12 Mar 2016 12:49:28 +0000 (13:49 +0100)
- compareTo()/Comparable<T> was used back in the TDGP times and is no longer needed
- value first, then variable on comparison to avoid accidently assignments
- updated jar(s)

14 files changed:
lib/jcontacts-business-core.jar
lib/jcontacts-core.jar
lib/jcore-logger-lib.jar
lib/jcore.jar
lib/jcoreee.jar
lib/jcountry-core.jar
lib/jphone-core.jar
lib/juser-core.jar
lib/juser-lib.jar
src/org/mxchange/jjobs/model/addressbook/UserAddressbook.java
src/org/mxchange/jjobs/model/addressbook/entry/AddressbookEntry.java
src/org/mxchange/jjobs/model/addressbook/entry/UserAddressbookEntry.java
src/org/mxchange/jjobs/model/addressbook/shared/AddressbookShare.java
src/org/mxchange/jjobs/validator/addressbook/AddressbookIdValidator.java

index fcaadf8ccb43000591b17665bdb1e7b4d4824515..884145717cb1a8b858277292723d934289ebce07 100644 (file)
Binary files a/lib/jcontacts-business-core.jar and b/lib/jcontacts-business-core.jar differ
index e905316a232cc3f743e47c1d041b3c782fa666f1..c06f26338a644f05dc23d0100e3b2efc31d0f98f 100644 (file)
Binary files a/lib/jcontacts-core.jar and b/lib/jcontacts-core.jar differ
index 491e05fe48abdfd78e100c25d0edaeaaa7496143..863522c3b521c41ed1e3f639940e44b1dbf22cf9 100644 (file)
Binary files a/lib/jcore-logger-lib.jar and b/lib/jcore-logger-lib.jar differ
index 23ef19d3e26ecc03e092895707158a0296bb95bf..097890ccbac9f229dc08c9aa1dd3e6ca12696ce6 100644 (file)
Binary files a/lib/jcore.jar and b/lib/jcore.jar differ
index f2ad1c85d97e64c5a60b7580b4a440554a198134..3f35cb503dc349a077aa978ba857bb1175b5c861 100644 (file)
Binary files a/lib/jcoreee.jar and b/lib/jcoreee.jar differ
index 8f2a52866c7ad118b28db9a470c105f6fc62f655..70a1a6a6565139b666bc696a133750c5800a8b3b 100644 (file)
Binary files a/lib/jcountry-core.jar and b/lib/jcountry-core.jar differ
index 221f558c88c722e38e98a8f00c55f365f4cf1498..d453cc6e2ed5caff242d519a97bb61fe244d2da0 100644 (file)
Binary files a/lib/jphone-core.jar and b/lib/jphone-core.jar differ
index 7dad4a093ec73a3f597125d3068b39e293fae567..ac9a868224d0246b408fd2ad6c03bb853492f544 100644 (file)
Binary files a/lib/juser-core.jar and b/lib/juser-core.jar differ
index f637271c38803627467b683fb564c07db7c11532..dd11c240493a216c77ed2b313e537ab78f64da1e 100644 (file)
Binary files a/lib/juser-lib.jar and b/lib/juser-lib.jar differ
index 274cb9a13fdc7ffe71193b81f903318787f35a73..12e727940154cef50b95af3c7333c7390dabf310 100644 (file)
@@ -53,7 +53,7 @@ import org.mxchange.jusercore.model.user.User;
                        @NamedQuery (name = "SearchAddressbookById", query = "SELECT a FROM addressbooks AS a WHERE a.addressbookId = :id")
                }
 )
-public class UserAddressbook implements Addressbook, Comparable<Addressbook> {
+public class UserAddressbook implements Addressbook {
 
        /**
         * Serial number
@@ -137,14 +137,9 @@ public class UserAddressbook implements Addressbook, Comparable<Addressbook> {
                this.addressbookStatus = AddressbokStatus.UNLOCKED;
        }
 
-       @Override
-       public int compareTo (final Addressbook addressbook) {
-               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
-       }
-
        @Override
        public boolean equals (final Object object) {
-               if (object == null) {
+               if (null == object) {
                        return false;
                } else if (this.getClass() != object.getClass()) {
                        return false;
index e40e55fb764d4b83de2476440987e3ac0c9b986d..b09a796ee7c436fed87eddf27abf0ddeb36abed8 100644 (file)
@@ -18,9 +18,9 @@ package org.mxchange.jjobs.model.addressbook.entry;
 
 import java.io.Serializable;
 import java.util.Calendar;
-import org.mxchange.jjobs.model.addressbook.Addressbook;
 import org.mxchange.jcontacts.contact.Contact;
 import org.mxchange.jcontactsbusiness.BusinessContact;
+import org.mxchange.jjobs.model.addressbook.Addressbook;
 
 /**
  * A POJI for addressbook entries
index 576846229affeb537863251d8c94bb7368c869e6..806d19c11ce556980d8e2bd6b38717782ba910ed 100644 (file)
@@ -51,7 +51,7 @@ import org.mxchange.jjobs.model.addressbook.UserAddressbook;
                                name = "SearchUsersAddressbookEntries",
                                query = "SELECT e FROM addressbook_entries AS e INNER JOIN addressbooks AS a ON e.addressbookId = a WHERE e.addressbookId = :addressbook AND a.addressbookUser = :owner ORDER BY e.addressbookEntryId ASC")
 )
-public class UserAddressbookEntry implements AddressbookEntry, Comparable<AddressbookEntry> {
+public class UserAddressbookEntry implements AddressbookEntry {
 
        /**
         * Serial number
@@ -95,14 +95,9 @@ public class UserAddressbookEntry implements AddressbookEntry, Comparable<Addres
        @OneToOne (targetEntity = UserAddressbook.class, optional = false, cascade = CascadeType.REFRESH)
        private Addressbook addressbookId;
 
-       @Override
-       public int compareTo (final AddressbookEntry addressbookEntry) {
-               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
-       }
-
        @Override
        public boolean equals (final Object object) {
-               if (object == null) {
+               if (null == object) {
                        return false;
                } else if (this.getClass() != object.getClass()) {
                        return false;
index e9ca3096cc2fc48de3d0319da65734a94d0fd219..e79863a75b91452102b579ddd7d1cae184d37dc4 100644 (file)
@@ -58,7 +58,7 @@ import org.mxchange.jusercore.model.user.User;
                        )
                }
 )
-public class AddressbookShare implements ShareableAddressbook, Comparable<ShareableAddressbook> {
+public class AddressbookShare implements ShareableAddressbook {
 
        /**
         * Serial number
@@ -151,14 +151,9 @@ public class AddressbookShare implements ShareableAddressbook, Comparable<Sharea
        public AddressbookShare () {
        }
 
-       @Override
-       public int compareTo (final ShareableAddressbook share) {
-               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
-       }
-
        @Override
        public boolean equals (final Object object) {
-               if (object == null) {
+               if (null == object) {
                        return false;
                } else if (this.getClass() != object.getClass()) {
                        return false;
index cab1eb3b2ea121c57545372e7872b3e3381a4624..d521a7f46fcb4a8efc2ba67ebd55aae3da67611d 100644 (file)
@@ -105,7 +105,7 @@ public class AddressbookIdValidator extends BaseLongValidator {
                        addressbook = this.addressbookBean.getAddressbookById(addressbookId);
 
                        // Is it set?
-                       if (addressbook == null) {
+                       if (null == addressbook) {
                                // Is null?!
                                throw new NullPointerException(MessageFormat.format("addressbook for id={0} is null", addressbookId)); //NOI18N
                        }