]> git.mxchange.org Git - addressbook-lib.git/blobdiff - src/org/mxchange/addressbook/database/frontend/contact/AddressbookContactDatabaseFrontend.java
Better compare this way:
[addressbook-lib.git] / src / org / mxchange / addressbook / database / frontend / contact / AddressbookContactDatabaseFrontend.java
index 5f68c5c3bd599420183dc36f5f65e6d1104efedb..02089cbe250b75015cf39b32d196ecc9c533ae34 100644 (file)
@@ -58,7 +58,7 @@ public class AddressbookContactDatabaseFrontend extends BaseDatabaseFrontend imp
                this.getLogger().trace(MessageFormat.format("manager={0} - CALLED!", manager)); //NOI18N
 
                // Manager instance must not be null
-               if (manager == null) {
+               if (null == manager) {
                        // Abort here
                        throw new NullPointerException("manager is null"); //NOI18N
                }
@@ -89,7 +89,7 @@ public class AddressbookContactDatabaseFrontend extends BaseDatabaseFrontend imp
                this.getLogger().trace("CALLED!"); //NOI18N
 
                // Make sure the contact is set
-               if (contact == null) {
+               if (null == contact) {
                        // Abort here
                        throw new NullPointerException("contact is null"); //NOI18N
                }
@@ -222,7 +222,7 @@ public class AddressbookContactDatabaseFrontend extends BaseDatabaseFrontend imp
                this.getLogger().trace(MessageFormat.format("contact={0} - CALLED!", contact)); //NOI18N
 
                // contact should not be null
-               if (contact == null) {
+               if (null == contact) {
                        // Abort here
                        throw new NullPointerException("contact is null"); //NOI18N
                }
@@ -267,13 +267,13 @@ public class AddressbookContactDatabaseFrontend extends BaseDatabaseFrontend imp
        @Override
        public boolean isOwnContactFound () throws SQLException, IOException, BadTokenException, CorruptedDatabaseFileException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {
                // Get search criteria instance
-               SearchableCriteria critera = new SearchCriteria();
+               SearchableCriteria criteria = new SearchCriteria();
 
                // Add condition
-               critera.addCriteria(AddressbookContactDatabaseConstants.COLUMN_OWN_CONTACT, true);
+               criteria.addCriteria(AddressbookContactDatabaseConstants.COLUMN_OWN_CONTACT, true);
 
                // Get result
-               Result<? extends Storeable> result = this.getBackend().doSelectByCriteria(critera);
+               Result<? extends Storeable> result = this.getBackend().doSelectByCriteria(criteria);
 
                // Deligate this call to backend
                return result.hasNext();