Skip to content

Commit

Permalink
chore: Fix errors reported by doclet
Browse files Browse the repository at this point in the history
  • Loading branch information
zgtm committed Dec 18, 2024
1 parent 0fbc70c commit 97694d9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/main/java/com/code_intelligence/jazzer/api/Autofuzz.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ private Autofuzz() {}
* The {@link Throwable} is thrown unchecked.
*/
@SuppressWarnings("unchecked")
public static <T1, R> R autofuzz(FuzzedDataProvider data, Function1<T1, R> func) {
public static <T1, R> R autofuzz(FuzzedDataProvider data, Function1<T1, R> func) throws Throwable {
try {
return (R) AUTOFUZZ_FUNCTION_1.invoke(data, func);
} catch (AutofuzzInvocationException e) {
Expand Down Expand Up @@ -187,7 +187,7 @@ public static <T1, R> R autofuzz(FuzzedDataProvider data, Function1<T1, R> func)
* The {@link Throwable} is thrown unchecked.
*/
@SuppressWarnings("unchecked")
public static <T1, T2, R> R autofuzz(FuzzedDataProvider data, Function2<T1, T2, R> func) {
public static <T1, T2, R> R autofuzz(FuzzedDataProvider data, Function2<T1, T2, R> func) throws Throwable {
try {
return (R) AUTOFUZZ_FUNCTION_2.invoke(data, func);
} catch (AutofuzzInvocationException e) {
Expand Down Expand Up @@ -217,7 +217,7 @@ public static <T1, T2, R> R autofuzz(FuzzedDataProvider data, Function2<T1, T2,
* The {@link Throwable} is thrown unchecked.
*/
@SuppressWarnings("unchecked")
public static <T1, T2, T3, R> R autofuzz(FuzzedDataProvider data, Function3<T1, T2, T3, R> func) {
public static <T1, T2, T3, R> R autofuzz(FuzzedDataProvider data, Function3<T1, T2, T3, R> func) throws Throwable {
try {
return (R) AUTOFUZZ_FUNCTION_3.invoke(data, func);
} catch (AutofuzzInvocationException e) {
Expand Down Expand Up @@ -248,7 +248,7 @@ public static <T1, T2, T3, R> R autofuzz(FuzzedDataProvider data, Function3<T1,
*/
@SuppressWarnings("unchecked")
public static <T1, T2, T3, T4, R> R autofuzz(
FuzzedDataProvider data, Function4<T1, T2, T3, T4, R> func) {
FuzzedDataProvider data, Function4<T1, T2, T3, T4, R> func) throws Throwable {
try {
return (R) AUTOFUZZ_FUNCTION_4.invoke(data, func);
} catch (AutofuzzInvocationException e) {
Expand Down Expand Up @@ -279,7 +279,7 @@ public static <T1, T2, T3, T4, R> R autofuzz(
*/
@SuppressWarnings("unchecked")
public static <T1, T2, T3, T4, T5, R> R autofuzz(
FuzzedDataProvider data, Function5<T1, T2, T3, T4, T5, R> func) {
FuzzedDataProvider data, Function5<T1, T2, T3, T4, T5, R> func) throws Throwable {
try {
return (R) AUTOFUZZ_FUNCTION_5.invoke(data, func);
} catch (AutofuzzInvocationException e) {
Expand All @@ -306,7 +306,7 @@ public static <T1, T2, T3, T4, T5, R> R autofuzz(
* AutofuzzConstructionException} if autofuzz failed to construct the arguments for the call.
* The {@link Throwable} is thrown unchecked.
*/
public static <T1> void autofuzz(FuzzedDataProvider data, Consumer1<T1> func) {
public static <T1> void autofuzz(FuzzedDataProvider data, Consumer1<T1> func) throws Throwable {
try {
AUTOFUZZ_CONSUMER_1.invoke(data, func);
} catch (AutofuzzInvocationException e) {
Expand All @@ -331,7 +331,7 @@ public static <T1> void autofuzz(FuzzedDataProvider data, Consumer1<T1> func) {
* AutofuzzConstructionException} if autofuzz failed to construct the arguments for the call.
* The {@link Throwable} is thrown unchecked.
*/
public static <T1, T2> void autofuzz(FuzzedDataProvider data, Consumer2<T1, T2> func) {
public static <T1, T2> void autofuzz(FuzzedDataProvider data, Consumer2<T1, T2> func) throws Throwable {
try {
AUTOFUZZ_CONSUMER_2.invoke(data, func);
} catch (AutofuzzInvocationException e) {
Expand All @@ -356,7 +356,7 @@ public static <T1, T2> void autofuzz(FuzzedDataProvider data, Consumer2<T1, T2>
* AutofuzzConstructionException} if autofuzz failed to construct the arguments for the call.
* The {@link Throwable} is thrown unchecked.
*/
public static <T1, T2, T3> void autofuzz(FuzzedDataProvider data, Consumer3<T1, T2, T3> func) {
public static <T1, T2, T3> void autofuzz(FuzzedDataProvider data, Consumer3<T1, T2, T3> func) throws Throwable {
try {
AUTOFUZZ_CONSUMER_3.invoke(data, func);
} catch (AutofuzzInvocationException e) {
Expand All @@ -382,7 +382,7 @@ public static <T1, T2, T3> void autofuzz(FuzzedDataProvider data, Consumer3<T1,
* The {@link Throwable} is thrown unchecked.
*/
public static <T1, T2, T3, T4> void autofuzz(
FuzzedDataProvider data, Consumer4<T1, T2, T3, T4> func) {
FuzzedDataProvider data, Consumer4<T1, T2, T3, T4> func) throws Throwable {
try {
AUTOFUZZ_CONSUMER_4.invoke(data, func);
} catch (AutofuzzInvocationException e) {
Expand All @@ -408,7 +408,7 @@ public static <T1, T2, T3, T4> void autofuzz(
* The {@link Throwable} is thrown unchecked.
*/
public static <T1, T2, T3, T4, T5> void autofuzz(
FuzzedDataProvider data, Consumer5<T1, T2, T3, T4, T5> func) {
FuzzedDataProvider data, Consumer5<T1, T2, T3, T4, T5> func) throws Throwable {
try {
AUTOFUZZ_CONSUMER_5.invoke(data, func);
} catch (AutofuzzInvocationException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@
* reference a target method, no other types allowed. Attention must be paid to not
* guide the Fuzzer in different directions via {@link Jazzer}'s {@code guideTowardsXY}
* methods in the different hooks.
* </ul>
* </dl>
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
Expand Down

0 comments on commit 97694d9

Please sign in to comment.