Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-1822

Inconsistent method name

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 2.6.0
    • Broker
    • None

    Description

      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".

         public boolean lookupRecord(final long id) {
            return recordsSnapshot.contains(id);
         }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              BruceKuiLIU KuiLIU
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: