This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit a30357a2ca875b7884093d4ea6309a1ad36027d3 Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Fri Feb 6 13:19:54 2026 +0000 (chores): modernize instanceof checks in camel-platform-http-jolokia --- .../platform/http/plugin/DefaultJolokiaPlatformHttpPlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/camel-platform-http-jolokia/src/main/java/org/apache/camel/component/platform/http/plugin/DefaultJolokiaPlatformHttpPlugin.java b/components/camel-platform-http-jolokia/src/main/java/org/apache/camel/component/platform/http/plugin/DefaultJolokiaPlatformHttpPlugin.java index 3815981ee852..e9575cf2a871 100644 --- a/components/camel-platform-http-jolokia/src/main/java/org/apache/camel/component/platform/http/plugin/DefaultJolokiaPlatformHttpPlugin.java +++ b/components/camel-platform-http-jolokia/src/main/java/org/apache/camel/component/platform/http/plugin/DefaultJolokiaPlatformHttpPlugin.java @@ -200,8 +200,8 @@ public class DefaultJolokiaPlatformHttpPlugin extends ServiceSupport implements try { Method m = ReflectionHelper.findMethod(requestHandler.getClass(), "handleThrowable", Throwable.class); if (m != null) { - json = ObjectHelper.invokeMethodSafe(m, requestHandler, exp instanceof RuntimeMBeanException - ? ((RuntimeMBeanException) exp).getTargetException() : exp); + json = ObjectHelper.invokeMethodSafe(m, requestHandler, exp instanceof RuntimeMBeanException rmbe + ? rmbe.getTargetException() : exp); } } catch (Exception e) { // ignore
