Skip to content

Instantly share code, notes, and snippets.

@johnpoth
Created June 10, 2020 07:50
Show Gist options
  • Save johnpoth/9a9b2d606d0d03c9878955c3de9fd17f to your computer and use it in GitHub Desktop.
Save johnpoth/9a9b2d606d0d03c9878955c3de9fd17f to your computer and use it in GitHub Desktop.
<rule id="java-generic-information-00032">
<when>
<javaclass references="org.apache.camel.CamelContext.{get|set}Propert{y|ies}({*})" >
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="`org.apache.camel.CamelContext` property methods have been removed." effort="1"
category-id="mandatory">
<message>The `getProperties` and `setProperty` methods have been removed from `org.apache.camel.CamelContext`. Please use `getGlobalOptions` and `setGlobalOptions` instead</message>
<link title="Camel 3 - Migration Guide: CONFIGURING GLOBAL OPTIONS ON CAMELCONTEXT"
href="https://camel.apache.org/manual/latest/camel-3-migration-guide.html#_configuring_global_options_on_camelcontext"/>
</hint>
</perform>
</rule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment