WiserAssertions: suppress checkstyle rule IllegalCatch
This commit is contained in:
parent
cef89074ef
commit
af4b48e212
1 changed files with 1 additions and 0 deletions
|
@ -253,6 +253,7 @@ public final class WiserAssertions {
|
||||||
*
|
*
|
||||||
* @return the product of the supplier
|
* @return the product of the supplier
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("illegalCatch")
|
||||||
public static <T> T unchecked(final ThrowingSupplier<T> supplier) {
|
public static <T> T unchecked(final ThrowingSupplier<T> supplier) {
|
||||||
try {
|
try {
|
||||||
return supplier.get();
|
return supplier.get();
|
||||||
|
|
Loading…
Reference in a new issue