Add a @SuppressWarnings.

This commit is contained in:
Gary Gregory 2021-06-23 09:59:38 -04:00
parent 8218578b74
commit 261a5797bd

View File

@ -48,6 +48,7 @@ public class DurationUtils {
* @param duration The duration to pick apart.
* @throws T See the function signature.
*/
@SuppressWarnings("boxing") // boxing unavoidable
public static <T extends Throwable> void accept(final FailableBiConsumer<Long, Integer, T> consumer, final Duration duration)
throws T {
if (consumer != null && duration != null) {