Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-5769

Inconsistent method name

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • CAS Editor
    • None

    Description

      The following method is named "toList" that seems like to convert one object to a list, but the method just returns a list of FeatureStructure objects, so that the method name "getList" should be more clear than "toList".

       /**
         * Retrieves a list of {@link FeatureStructure} objects.
         *
         * @return all selected {@link FeatureStructure} objects
         */
        public List<FeatureStructure> toList() {
          return mFeatureStructures;
        }
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: