You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Henryk Konsek (JIRA)" <ji...@apache.org> on 2012/06/19 09:06:42 UTC

[jira] [Updated] (CAMEL-5379) Introduce EmptyAsyncCallback

     [ https://issues.apache.org/jira/browse/CAMEL-5379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henryk Konsek updated CAMEL-5379:
---------------------------------

    Attachment: camel-emptyAsyncCallBack.patch

EmptyAsyncCallback patch attached.
                
> Introduce EmptyAsyncCallback
> ----------------------------
>
>                 Key: CAMEL-5379
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5379
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Henryk Konsek
>            Assignee: Henryk Konsek
>             Fix For: 2.10.0
>
>         Attachments: camel-emptyAsyncCallBack.patch
>
>
> What about replacing anonymous inner noop AsyncCallback with EmptyAsyncCallback? Just to make a codebase a little bit nicer.
> // Bad
> Object value = invocation.proceed(new AsyncCallback() {
>   public void done(boolean doneSync) {
>     // nnop
>   }
> }, sync);
> // Good
> Object value = invocation.proceed(new EmptyAsyncCallback(), sync);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira