Hi Jan, Thanks for the pointing that out, it makes document more easy to understand. FYI I just updated the document with your suggestion.
-- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Thursday, February 7, 2013 at 4:08 AM, Jan Matèrne (jhm) wrote: > In the examples there is a method > public String doSomething(String body) > with a String as return type. > Directly under that this is written > "Or the Exchange example. Notice that the return type must be void when > there is only a single parameter:" > > How does that fit - void return type and String return type? > Is the rule "void return type when one parameter" only valid for > Exchange-parameters? > Then it would be clearer to write that > "Or the Exchange example. Notice that the return type must be void when > there is only a single parameter of type Exchange:" > > > Jan