[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-10365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16624710#comment-16624710
 ] 

ASF subversion and git services commented on CLOUDSTACK-10365:
--------------------------------------------------------------

Commit d53fc944857eb6e6d9542eef915f14066dab5861 in cloudstack's branch 
refs/heads/master from Kui LIU
[ https://gitbox.apache.org/repos/asf?p=cloudstack.git;h=d53fc94 ]

CLOUDSTACK-10365: Change the "getXXX" boolean method names to "isXXX" (#2847)

These boolean-return methods are named as "getXXX".
Other boolean-return methods are named as "isXXX".
Considering there methods will return boolean values, it should be more clear 
and consistent to rename them as "isXXX".
(rebase #2602 and #2816)


> Inconsistent boolean-related method names
> -----------------------------------------
>
>                 Key: CLOUDSTACK-10365
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-10365
>             Project: CloudStack
>          Issue Type: Improvement
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>            Reporter: KuiLIU
>            Priority: Major
>
> These boolean-return methods are named as "getXXX".
> Other boolean-return methods are named as "isXXX".
> Considering there methods will return boolean values, it should be more clear 
> to rename them as "isXXX".
> {code:java}
>      public boolean getEnableRRS() {
>          return enableRRS;
>      }
>     public boolean getEnableRRS() {
>          return enableRRS;
>      }
>      public boolean getShrinkOk() {
>          return shrinkOk;
>      }
>      
>      public boolean getSourceNat() {
>          return sourceNat;
>      }
>      
>      public boolean getInternalLb() {
>          return internalLb;
>      }
>      
>      public boolean getOfferHA() {
>          return offerHA;
>      }
>      
>       public boolean getVolatileVm() {
>          return volatileVm;
>      }
>      
>      public boolean getIsUserDefined() {
>          return isUserDefined;
>      }
>      
>       public boolean getEnablePassword() {
>          return enablePassword;
>      }
>      
>      public boolean getEnableSshKey() {
>          return enableSshKey;
>      }
>      
>      public boolean getUuidTranslation() {
>          return _doUuidTranslation;
>      }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to