Migrate csimple Java API to simple
Apache 2.0The csimple language was removed in Camel 4.23. Renames the removed csimple(...) builder methods, including the LanguageBuilderFactory csimple() builders, to the equivalent simple(...) overloads, and changes the removed CSimpleExpression model type and CSimpleLanguage runtime type to SimpleExpression and SimpleLanguage. A static import of Builder.csimple is rewritten when it is used; one that is shadowed by the inherited BuilderSupport.csimple inside a RouteBuilder was already unused and is left behind. Expressions relying on csimple-only compiled syntax still need manual review.
org. apache. camel. upgrade. camel423. migrateCSimpleJavaApimod run . --recipe= org. apache. camel. upgrade. camel423. migrateCSimpleJavaApiInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Change method name
org.apache.camel.builder.Builder csimple(String)tosimple - Change method name
org.apache.camel.builder.Builder csimple(String, Class)tosimple - Change method name
org.apache.camel.builder.BuilderSupport csimple(String)tosimple - Change method name
org.apache.camel.builder.BuilderSupport csimple(String, Class)tosimple - Change method name
org.apache.camel.builder.ExpressionClause csimple(String)tosimple - Change method name
org.apache.camel.builder.ExpressionClause csimple(String, Class)tosimple - Change method name
org.apache.camel.builder.ExpressionClauseSupport csimple(String)tosimple - Change method name
org.apache.camel.builder.ExpressionClauseSupport csimple(String, Class)tosimple - Change method name
org.apache.camel.builder.LanguageBuilderFactory csimple()tosimple - Change method name
org.apache.camel.builder.LanguageBuilderFactory csimple(String)tosimple - Change type
CSimpleExpressiontoSimpleExpression - Change type
CSimpleLanguagetoSimpleLanguage