Migrate csimple Java API to simple

Apache 2.0

The 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.migrateCSimpleJavaApi
mod run . --recipe=org.apache.camel.upgrade.camel423.migrateCSimpleJavaApi

Install 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.

  1. Change method name org.apache.camel.builder.Builder csimple(String) to simple
  2. Change method name org.apache.camel.builder.Builder csimple(String, Class) to simple
  3. Change method name org.apache.camel.builder.BuilderSupport csimple(String) to simple
  4. Change method name org.apache.camel.builder.BuilderSupport csimple(String, Class) to simple
  5. Change method name org.apache.camel.builder.ExpressionClause csimple(String) to simple
  6. Change method name org.apache.camel.builder.ExpressionClause csimple(String, Class) to simple
  7. Change method name org.apache.camel.builder.ExpressionClauseSupport csimple(String) to simple
  8. Change method name org.apache.camel.builder.ExpressionClauseSupport csimple(String, Class) to simple
  9. Change method name org.apache.camel.builder.LanguageBuilderFactory csimple() to simple
  10. Change method name org.apache.camel.builder.LanguageBuilderFactory csimple(String) to simple
  11. Change type CSimpleExpression to SimpleExpression
  12. Change type CSimpleLanguage to SimpleLanguage