You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "clebert suconic (JIRA)" <ji...@apache.org> on 2018/04/27 01:25:00 UTC

[jira] [Updated] (ARTEMIS-1822) Inconsistent method name

     [ https://issues.apache.org/jira/browse/ARTEMIS-1822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

clebert suconic updated ARTEMIS-1822:
-------------------------------------
       Priority: Trivial  (was: Major)
    Component/s: Broker
     Issue Type: Task  (was: Improvement)

> Inconsistent method name
> ------------------------
>
>                 Key: ARTEMIS-1822
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1822
>             Project: ActiveMQ Artemis
>          Issue Type: Task
>          Components: Broker
>            Reporter: KuiLIU
>            Priority: Trivial
>
> 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)