from("e1")
.split()
.method("bean", "m1")
.to("e2")
.end()
.split()
.method("bean", "m2")
.to("e3");
コンパイラは2番目について文句を言いto
ます。その理由は、何らかの理由で、2番目のsplit
戻り値が。ExpressionCaluse
ではなくExpressionClause<SplitDefinition>
、次のmethod
戻り値のタイプが。ではないとObject
見なされるためSplitDefinition
です。