Rename an argument for clarity.

This commit is contained in:
akwizgran
2019-05-08 10:38:42 +01:00
parent ee05c32871
commit 658c63d94e
3 changed files with 5 additions and 5 deletions

View File

@@ -274,7 +274,7 @@ public interface DatabaseComponent {
* <p/> * <p/>
* Read-only. * Read-only.
*/ */
Collection<ContactId> getContacts(Transaction txn, AuthorId a) Collection<ContactId> getContacts(Transaction txn, AuthorId local)
throws DbException; throws DbException;
/** /**

View File

@@ -273,7 +273,7 @@ interface Database<T> {
* <p/> * <p/>
* Read-only. * Read-only.
*/ */
Collection<ContactId> getContacts(T txn, AuthorId a) throws DbException; Collection<ContactId> getContacts(T txn, AuthorId local) throws DbException;
/** /**
* Returns the group with the given ID. * Returns the group with the given ID.

View File

@@ -503,11 +503,11 @@ class DatabaseComponentImpl<T> implements DatabaseComponent {
@Override @Override
public Collection<ContactId> getContacts(Transaction transaction, public Collection<ContactId> getContacts(Transaction transaction,
AuthorId a) throws DbException { AuthorId local) throws DbException {
T txn = unbox(transaction); T txn = unbox(transaction);
if (!db.containsIdentity(txn, a)) if (!db.containsIdentity(txn, local))
throw new NoSuchIdentityException(); throw new NoSuchIdentityException();
return db.getContacts(txn, a); return db.getContacts(txn, local);
} }
@Override @Override