Skip to content

Commit

Permalink
Merge pull request #548 from coreyjv/master
Browse files Browse the repository at this point in the history
Fixed a JDK5 backwards compatibility issue introduced in Pull #542
  • Loading branch information
David Saff committed Nov 15, 2012
2 parents c97adf9 + cc87f65 commit ea96d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/junit/rules/ExpectedException.java
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,6 @@ private String missingExceptionMessage() {
}

private boolean isMissingExceptionMessageEmpty() {
return missingExceptionMessage == null || missingExceptionMessage.isEmpty();
return missingExceptionMessage == null || missingExceptionMessage.length() == 0;
}
}

0 comments on commit ea96d2e

Please sign in to comment.