You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2023/05/16 14:39:15 UTC

[camel] branch main updated: (chores) camel-base-engine: removed unnecessary null check

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


The following commit(s) were added to refs/heads/main by this push:
     new 08259f637c7 (chores) camel-base-engine: removed unnecessary null check
08259f637c7 is described below

commit 08259f637c7ab24bee65ae8fcc91c13a8e215e2a
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Tue May 16 15:44:40 2023 +0200

    (chores) camel-base-engine: removed unnecessary null check
---
 .../org/apache/camel/impl/engine/DefaultCamelBeanPostProcessor.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultCamelBeanPostProcessor.java b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultCamelBeanPostProcessor.java
index 4b0cd1dd31a..9c0b5e75d0c 100644
--- a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultCamelBeanPostProcessor.java
+++ b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultCamelBeanPostProcessor.java
@@ -179,7 +179,7 @@ public class DefaultCamelBeanPostProcessor implements CamelBeanPostProcessor, Ca
     }
 
     protected boolean canPostProcessBean(Object bean, String beanName) {
-        if (beanName != null && "properties".equals(beanName)) {
+        if ("properties".equals(beanName)) {
             // we cannot process the properties component
             // its instantiated very eager during creation of camel context
             return false;