Skip to content

Commit 2eab32b

Browse files
committed
No need to end exception messages with an exclamation!
1 parent 21a35f7 commit 2eab32b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test/java/org/apache/commons/validator/ExceptionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ void testRuntimeException() throws ValidatorException {
107107
// Get results of the validation which can throw ValidatorException
108108
try {
109109
validator.validate();
110-
// fail("RuntimeException should occur here!");
110+
// fail("RuntimeException should occur here.");
111111
} catch (final RuntimeException expected) {
112112
fail("RuntimeExceptions should be treated as validation failures in Validator 1.x.");
113113
// This will be true in Validator 2.0

0 commit comments

Comments
 (0)