You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "KuiLIU (JIRA)" <ji...@apache.org> on 2018/04/21 21:52:00 UTC
[jira] [Created] (ARTEMIS-1822) Inconsistent method name
KuiLIU created ARTEMIS-1822:
-------------------------------
Summary: Inconsistent method name
Key: ARTEMIS-1822
URL: https://issues.apache.org/jira/browse/ARTEMIS-1822
Project: ActiveMQ Artemis
Issue Type: Improvement
Reporter: KuiLIU
The following method is named "lookupRecord".
"lookupRecord" seems to find a related record.
But the method is checking whether recordsSnapshot contains the id or not.
Thus, the method name "containsRecord" is more intuitive than "lookupRecord".
{code:java}
public boolean lookupRecord(final long id) {
return recordsSnapshot.contains(id);
}
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)