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
}
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
}
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
}
@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();