Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

CLOUDSTACK-10365: Change the "getXXX" boolean-related method names to…#2847

Merged
DaanHoogland merged 1 commit intoapache:masterapache/cloudstack:masterfrom
Kui-Liu:masterCopy head branch name to clipboard
Sep 22, 2018
Merged

CLOUDSTACK-10365: Change the "getXXX" boolean-related method names to…#2847
DaanHoogland merged 1 commit intoapache:masterapache/cloudstack:masterfrom
Kui-Liu:masterCopy head branch name to clipboard

Conversation

@Kui-Liu
Copy link
Contributor

@Kui-Liu Kui-Liu commented Sep 17, 2018

… "isXXX".

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)

… "isXXX".

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)
@borisstoyanov
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@borisstoyanov a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2301

@borisstoyanov
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

@borisstoyanov a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

Copy link
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code looks fine. let's give this some priority as it keeps getting pushed forward. @rafaelweingartner @rhtyd ....

Copy link
Member

@rafaelweingartner rafaelweingartner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@brucekuiliu Thanks for the PR.

One note though. Please, do not do the same in the future. By the "same" here, I mean, this is the third to address the same issue that you created. The first one was closed, then the second one you deleted the branch before it actually being merged. This breaks history, and it makes it harder for us to review it. I had to revisit all of the other to see the comments there. For instance, there was a concern from Frank regarding the change in these method names that was never answered.

@DaanHoogland
Copy link
Contributor

@brucekuiliu I agree with @rafaelweingartner as I noted in your prior PR, please have some patience with us, we are not the fasted mergers in the world of github.

Copy link
Contributor

@borisstoyanov borisstoyanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@DaanHoogland DaanHoogland merged commit d53fc94 into apache:master Sep 22, 2018
@Override
public boolean getIsPersistent() {
public boolean isPersistent() {
return isPersistent;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This cause the GC bug, our DB framework assumes that the attributes (map) is created by a method interceptor so the name of the variable should not have the 'is', the name of the variable that related to a db table's column should be something after removing get/is string prefix: https://github.com/apache/cloudstack/blob/master/framework/db/src/main/java/com/cloud/utils/db/SearchBase.java#L480
/cc @nvazquez @anuragaw @sh0wstopper @dhlaluku #2935

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.