commit
21810dc920
|
@ -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) {
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue