This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 7c2470e  camel-core - optimize
7c2470e is described below

commit 7c2470e3777536e6ce9a58dc2effe3e20bb8e212
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Sat Mar 7 21:09:39 2020 +0100

    camel-core - optimize
---
 .../org/apache/camel/support/PropertyBindingSupport.java    | 13 -------------
 1 file changed, 13 deletions(-)

diff --git 
a/core/camel-support/src/main/java/org/apache/camel/support/PropertyBindingSupport.java
 
b/core/camel-support/src/main/java/org/apache/camel/support/PropertyBindingSupport.java
index f43965c..2ca1b5d 100644
--- 
a/core/camel-support/src/main/java/org/apache/camel/support/PropertyBindingSupport.java
+++ 
b/core/camel-support/src/main/java/org/apache/camel/support/PropertyBindingSupport.java
@@ -242,11 +242,6 @@ public final class PropertyBindingSupport {
             Object obj = target != null ? target : this.target;
             Map<String, Object> prop = properties != null ? properties : 
this.properties;
 
-            // mandatory parameters
-            org.apache.camel.util.ObjectHelper.notNull(context, 
"camelContext");
-            org.apache.camel.util.ObjectHelper.notNull(obj, "target");
-            org.apache.camel.util.ObjectHelper.notNull(prop, "properties");
-
             return doBindProperties(context, obj, removeParameters ? prop : 
new HashMap<>(prop),
                     optionPrefix, ignoreCase, true, mandatory,
                     nesting, deepNesting, fluentBuilder, allowPrivateSetter, 
reference, placeholder, configurer);
@@ -262,11 +257,6 @@ public final class PropertyBindingSupport {
          * @return true if the property was bound
          */
         public boolean bind(CamelContext camelContext, Object target, String 
key, Object value) {
-            org.apache.camel.util.ObjectHelper.notNull(camelContext, 
"camelContext");
-            org.apache.camel.util.ObjectHelper.notNull(target, "target");
-            org.apache.camel.util.ObjectHelper.notNull(key, "key");
-            org.apache.camel.util.ObjectHelper.notNull(value, "value");
-
             Map<String, Object> properties = new HashMap<>(1);
             properties.put(key, value);
 
@@ -470,9 +460,6 @@ public final class PropertyBindingSupport {
                                             boolean nesting, boolean 
deepNesting, boolean fluentBuilder, boolean allowPrivateSetter,
                                             boolean reference, boolean 
placeholder,
                                             PropertyConfigurer configurer) {
-        org.apache.camel.util.ObjectHelper.notNull(camelContext, 
"camelContext");
-        org.apache.camel.util.ObjectHelper.notNull(target, "target");
-        org.apache.camel.util.ObjectHelper.notNull(properties, "properties");
 
         final String uOptionPrefix = ignoreCase && isNotEmpty(optionPrefix) ? 
optionPrefix.toUpperCase(Locale.US) : "";
         final int size = properties.size();

Reply via email to