Skip to content

Commit ea96d2e

Browse files
author
David Saff
committed
Merge pull request #548 from coreyjv/master
Fixed a JDK5 backwards compatibility issue introduced in Pull #542
2 parents c97adf9 + cc87f65 commit ea96d2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/junit/rules/ExpectedException.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,6 @@ private String missingExceptionMessage() {
223223
}
224224

225225
private boolean isMissingExceptionMessageEmpty() {
226-
return missingExceptionMessage == null || missingExceptionMessage.isEmpty();
226+
return missingExceptionMessage == null || missingExceptionMessage.length() == 0;
227227
}
228228
}

0 commit comments

Comments
 (0)