This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch 1.X
in repository https://gitbox.apache.org/repos/asf/commons-beanutils.git
The following commit(s) were added to refs/heads/1.X by this push:
new f2087c25 No need to end exception messages with an exclamation!
f2087c25 is described below
commit f2087c25bd018b6a05b4070c391843bb5a388614
Author: Gary Gregory <[email protected]>
AuthorDate: Wed Apr 15 08:00:36 2026 -0400
No need to end exception messages with an exclamation!
---
.../beanutils/SuppressPropertiesBeanIntrospector.java | 2 +-
.../beanutils/SuppressPropertiesBeanIntrospectorTest.java | 12 ++++++------
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git
a/src/main/java/org/apache/commons/beanutils/SuppressPropertiesBeanIntrospector.java
b/src/main/java/org/apache/commons/beanutils/SuppressPropertiesBeanIntrospector.java
index 61b45f28..bd71c83c 100644
---
a/src/main/java/org/apache/commons/beanutils/SuppressPropertiesBeanIntrospector.java
+++
b/src/main/java/org/apache/commons/beanutils/SuppressPropertiesBeanIntrospector.java
@@ -69,7 +69,7 @@ public class SuppressPropertiesBeanIntrospector implements
BeanIntrospector {
*/
public SuppressPropertiesBeanIntrospector(final Collection<String>
propertiesToSuppress) {
if (propertiesToSuppress == null) {
- throw new IllegalArgumentException("Property names must not be
null!");
+ throw new IllegalArgumentException("Property names must not be
null.");
}
propertyNames = Collections.unmodifiableSet(new HashSet<>(
diff --git
a/src/test/java/org/apache/commons/beanutils/SuppressPropertiesBeanIntrospectorTest.java
b/src/test/java/org/apache/commons/beanutils/SuppressPropertiesBeanIntrospectorTest.java
index f27b3b4d..0f91f59f 100644
---
a/src/test/java/org/apache/commons/beanutils/SuppressPropertiesBeanIntrospectorTest.java
+++
b/src/test/java/org/apache/commons/beanutils/SuppressPropertiesBeanIntrospectorTest.java
@@ -42,17 +42,17 @@ public class SuppressPropertiesBeanIntrospectorTest extends
TestCase {
@Override
public void addPropertyDescriptor(final PropertyDescriptor desc) {
- throw new UnsupportedOperationException("Unexpected method call!");
+ throw new UnsupportedOperationException("Unexpected method call.");
}
@Override
public void addPropertyDescriptors(final PropertyDescriptor[]
descriptors) {
- throw new UnsupportedOperationException("Unexpected method call!");
+ throw new UnsupportedOperationException("Unexpected method call.");
}
@Override
public PropertyDescriptor getPropertyDescriptor(final String name) {
- throw new UnsupportedOperationException("Unexpected method call!");
+ throw new UnsupportedOperationException("Unexpected method call.");
}
/**
@@ -66,17 +66,17 @@ public class SuppressPropertiesBeanIntrospectorTest extends
TestCase {
@Override
public Class<?> getTargetClass() {
- throw new UnsupportedOperationException("Unexpected method call!");
+ throw new UnsupportedOperationException("Unexpected method call.");
}
@Override
public boolean hasProperty(final String name) {
- throw new UnsupportedOperationException("Unexpected method call!");
+ throw new UnsupportedOperationException("Unexpected method call.");
}
@Override
public Set<String> propertyNames() {
- throw new UnsupportedOperationException("Unexpected method call!");
+ throw new UnsupportedOperationException("Unexpected method call.");
}
@Override