|
1 | 1 | /* |
2 | | - * Copyright 2016 the original author or authors. |
| 2 | + * Copyright 2024 the original author or authors. |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | * you may not use this file except in compliance with the License. |
|
15 | 15 | */ |
16 | 16 | package com.pivovarit.function; |
17 | 17 | /* |
18 | | - * Copyright 2016 the original author or authors. |
| 18 | + * Copyright 2024 the original author or authors. |
19 | 19 | * |
20 | 20 | * Licensed under the Apache License, Version 2.0 (the "License"); |
21 | 21 | * you may not use this file except in compliance with the License. |
|
40 | 40 | * Represents an operation that accepts two input arguments and returns no |
41 | 41 | * result. This is the two-arity specialization of {@link ThrowingConsumer}. |
42 | 42 | * Unlike most other functional interfaces, {@code ThrowingBiConsumer} is expected |
43 | | - * to operate via side-effects. |
| 43 | + * to operate via side effects. |
44 | 44 | * |
45 | 45 | * @param <T> the type of the first argument to the operation |
46 | 46 | * @param <U> the type of the second argument to the operation |
@@ -79,6 +79,9 @@ static <T, U> BiConsumer<T, U> unchecked(ThrowingBiConsumer<T, U, ?> consumer) { |
79 | 79 |
|
80 | 80 | /** |
81 | 81 | * Returns a new BiConsumer instance which rethrows the checked exception using the Sneaky Throws pattern |
| 82 | + * @param consumer ThrowingBiConsumer operation throwing checked exception |
| 83 | + * @param <T> the type of the first argument to the operation |
| 84 | + * @param <U> the type of the second argument to the operation |
82 | 85 | * @return BiConsumer instance that rethrows the checked exception using the Sneaky Throws pattern |
83 | 86 | */ |
84 | 87 | static <T, U> BiConsumer<T, U> sneaky(ThrowingBiConsumer<T, U, ?> consumer) { |
|
0 commit comments