You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by rodrigo93 <gi...@git.apache.org> on 2016/03/13 19:32:57 UTC

[GitHub] cloudstack pull request: Changed Void Methods to void

GitHub user rodrigo93 opened a pull request:

    https://github.com/apache/cloudstack/pull/1439

    Changed Void Methods to void

    I have changed many "Void" methods to "void" since they have to return
    null at the end and it has the same effect of "void" methods.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rodrigo93/cloudstack Changed_Void_Methods_to_void

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cloudstack/pull/1439.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1439
    
----
commit 53da9b645ce4fc39706ae72e28e7fd187fa4dc70
Author: Rodrigo <ro...@gmail.com>
Date:   2016-03-13T18:19:35Z

    Changed Void Methods to void
    
    I have changed many "Void" methods to "void" since they have to return
    null at the end and it has the same effect of "void" methods.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: Changed Void Methods to void

Posted by rafaelweingartner <gi...@git.apache.org>.
Github user rafaelweingartner commented on the pull request:

    https://github.com/apache/cloudstack/pull/1439#issuecomment-199926708
  
    @rodrigo93 have you built this PR successfully?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: Changed Void Methods to void

Posted by rafaelweingartner <gi...@git.apache.org>.
Github user rafaelweingartner commented on the pull request:

    https://github.com/apache/cloudstack/pull/1439#issuecomment-196447656
  
    @rodrigo93 you removed the return type Object (Void) to void; therefore, you have to fix those methods usage, such as the one at line 202 ( caller.setCallback(caller.getTarget().createTemplateAsyncCallBack(null, null));) of  classHypervisorTemplateAdapter.
    
    There is no return of method "createTemplateAsyncCallBack", so you cannot use its return to set somewhere else.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: Changed Void Methods to void

Posted by rodrigo93 <gi...@git.apache.org>.
Github user rodrigo93 commented on the pull request:

    https://github.com/apache/cloudstack/pull/1439#issuecomment-197832134
  
    Sorry for the delay to answer.
    Hi @rafaelweingartner , thanks for the suggestion. I will revise my PR and do the proper changes.
    
    @syed I am not sure why we Void types as well. I know that Void is used for reflections and when generic types is needed. Someone correct me if I am wrong.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: Changed Void Methods to void

Posted by syed <gi...@git.apache.org>.
Github user syed commented on the pull request:

    https://github.com/apache/cloudstack/pull/1439#issuecomment-196448464
  
    @rodrigo93 Do you know why we have `Void` return types? I've seen them and not sure why they were added. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: Changed Void Methods to void

Posted by rodrigo93 <gi...@git.apache.org>.
Github user rodrigo93 commented on the pull request:

    https://github.com/apache/cloudstack/pull/1439#issuecomment-196020657
  
    Squashed last 2 commits.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---