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

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

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

Claus Ibsen commented on CAMEL-5379:
------------------------------------

Oh Hadrian started the release process. I will hold of and commit this later.
                
> 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: Claus Ibsen
>            Priority: Trivial
>             Fix For: 2.10.0
>
>         Attachments: camel-5379.patch, 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