Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-10359

Inconsistent method names

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • Security Level: Public (Anyone can view this level - this is the default.)
    • None

    Description

      The following two methods are named "getXXX".
      The two method are checking the status of variables.
      "getCustomized" is not as intuitive as "isCustomized".
      "getIsSystem" is not as intuitive as "isSystem" as well.

          public boolean getCustomized() {
              return (cpuNumber == null || memory == null || cpuSpeed == null);
          }
      
         public Boolean getIsSystem() {
              return isSystem == null ? false : isSystem;
          }
      
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: