You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2018/04/24 09:37:09 UTC

[GitHub] BruceKuiLiu opened a new pull request #2600: CLOUDSTACK-10362: Change the "getXXX" method names to "isXXX".

BruceKuiLiu opened a new pull request #2600: CLOUDSTACK-10362: Change the "getXXX" method names to "isXXX".
URL: https://github.com/apache/cloudstack/pull/2600
 
 
   These Boolean-return methods are named "getXXX",
   but other Boolean-return methods are named "isXXX", such as the following two methods.
   They will return boolean values, rename them as "isXXX" should be more clear than "getXXX".
   
   api/src/main/java/org/apache/cloudstack/api/command/admin/vlan/ListVlanIpRangesCmd.java
      ```
     public Boolean getForVirtualNetwork() {
            return forVirtualNetwork;
        }
   ```
   api/src/main/java/org/apache/cloudstack/api/command/user/address/ListPublicIpAddressesCmd.java
       ```
   public Boolean isForVirtualNetwork() {
           return forVirtualNetwork;
       }
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services