Skip to content

Commit f2087c2

Browse files
committed
No need to end exception messages with an exclamation!
1 parent cf40681 commit f2087c2

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/main/java/org/apache/commons/beanutils/SuppressPropertiesBeanIntrospector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public class SuppressPropertiesBeanIntrospector implements BeanIntrospector {
6969
*/
7070
public SuppressPropertiesBeanIntrospector(final Collection<String> propertiesToSuppress) {
7171
if (propertiesToSuppress == null) {
72-
throw new IllegalArgumentException("Property names must not be null!");
72+
throw new IllegalArgumentException("Property names must not be null.");
7373
}
7474

7575
propertyNames = Collections.unmodifiableSet(new HashSet<>(

src/test/java/org/apache/commons/beanutils/SuppressPropertiesBeanIntrospectorTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@ private static class IntrospectionContextTestImpl implements IntrospectionContex
4242

4343
@Override
4444
public void addPropertyDescriptor(final PropertyDescriptor desc) {
45-
throw new UnsupportedOperationException("Unexpected method call!");
45+
throw new UnsupportedOperationException("Unexpected method call.");
4646
}
4747

4848
@Override
4949
public void addPropertyDescriptors(final PropertyDescriptor[] descriptors) {
50-
throw new UnsupportedOperationException("Unexpected method call!");
50+
throw new UnsupportedOperationException("Unexpected method call.");
5151
}
5252

5353
@Override
5454
public PropertyDescriptor getPropertyDescriptor(final String name) {
55-
throw new UnsupportedOperationException("Unexpected method call!");
55+
throw new UnsupportedOperationException("Unexpected method call.");
5656
}
5757

5858
/**
@@ -66,17 +66,17 @@ public Set<String> getRemovedProperties() {
6666

6767
@Override
6868
public Class<?> getTargetClass() {
69-
throw new UnsupportedOperationException("Unexpected method call!");
69+
throw new UnsupportedOperationException("Unexpected method call.");
7070
}
7171

7272
@Override
7373
public boolean hasProperty(final String name) {
74-
throw new UnsupportedOperationException("Unexpected method call!");
74+
throw new UnsupportedOperationException("Unexpected method call.");
7575
}
7676

7777
@Override
7878
public Set<String> propertyNames() {
79-
throw new UnsupportedOperationException("Unexpected method call!");
79+
throw new UnsupportedOperationException("Unexpected method call.");
8080
}
8181

8282
@Override

0 commit comments

Comments
 (0)