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/07/10 14:36:35 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=13410295#comment-13410295 ] 

Henryk Konsek commented on CAMEL-5379:
--------------------------------------

I feel rejected :P But I can understand your approach. :)
                
> 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.11
>
>         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