Merge branch 'pr/234'

This closes #234 thanks @mureinik
This commit is contained in:
Bruno P. Kinoshita 2017-02-12 10:28:26 +13:00
commit 21810dc920
1 changed files with 3 additions and 5 deletions

View File

@ -301,15 +301,13 @@ public void testIdentityToStringAppendable() {
try {
ObjectUtils.identityToString((Appendable)null, "tmp");
fail("NullPointerException expected");
} catch(final NullPointerException npe) {
} catch (final IOException ex) {
} catch(final NullPointerException | IOException npe) {
}
try {
ObjectUtils.identityToString((Appendable)(new StringBuilder()), null);
fail("NullPointerException expected");
} catch(final NullPointerException npe) {
} catch (final IOException ex) {
} catch(final NullPointerException | IOException npe) {
}
}