You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/05/03 13:37:01 UTC

(commons-configuration) branch master updated: Normalize exception message

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

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-configuration.git


The following commit(s) were added to refs/heads/master by this push:
     new 52e2f270 Normalize exception message
52e2f270 is described below

commit 52e2f27053fb58390ce7c9eddccc3c2c2924f12a
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri May 3 09:36:56 2024 -0400

    Normalize exception message
---
 .../apache/commons/configuration2/beanutils/ConfigurationDynaBean.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/configuration2/beanutils/ConfigurationDynaBean.java b/src/main/java/org/apache/commons/configuration2/beanutils/ConfigurationDynaBean.java
index a6d83e23..87eb3839 100644
--- a/src/main/java/org/apache/commons/configuration2/beanutils/ConfigurationDynaBean.java
+++ b/src/main/java/org/apache/commons/configuration2/beanutils/ConfigurationDynaBean.java
@@ -183,7 +183,7 @@ public class ConfigurationDynaBean extends ConfigurationMap implements DynaBean
         if (LOG.isTraceEnabled()) {
             LOG.trace("set(" + name + "," + value + ")");
         }
-        Objects.requireNonNull(value, "Error trying to set property to null.");
+        Objects.requireNonNull(value, "value");
 
         if (value instanceof Collection) {
             final Collection<?> collection = (Collection<?>) value;