/*
- * Copyright (C) 2016 - 2018 Free Software Foundation
+ * Copyright (C) 2016 - 2020 Free Software Foundation
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* @param sharee User sharee instance
*/
public AddressbookShare (final Addressbook addressbook, final User sharee) {
- // Call default constructor
+ // Invoke default constructor
this();
// Check all conditions
if (null == shareableAddressbook) {
// Should not happen
throw new NullPointerException("shareableAddressbook is null"); //NOI18N
- } else if (Objects.equals(this, shareableAddressbook)) {
+ } else if (shareableAddressbook.equals(this)) {
// Same object
return 0;
}