Fix Javadoc warnings due to Java 21 update (+ some other warnings)

The default implicit constructor must also have a doc comment, so I have to make it explicit and either properly restrict the visibility of the constructor, or actually document it.
This commit is contained in:
2024-06-06 23:59:32 +02:00
parent decf302851
commit d411618e63
58 changed files with 188 additions and 12 deletions

View File

@@ -2,6 +2,9 @@ package fr.pandacube.lib.util.function;
/**
* A consumer that can possibly throw a checked exception.
* @param <T> the first parameter for this bi-consumer.
* @param <U> the second parameter for this bi-consumer.
* @param <E> the exception type that this interface method can throw.
*/
@FunctionalInterface
public interface BiConsumerException<T, U, E extends Exception> {

View File

@@ -2,6 +2,8 @@ package fr.pandacube.lib.util.function;
/**
* A predicate that can possibly throw a checked exception.
* @param <T> the parameter for this predicate.
* @param <E> the exception type that this predicate can throw.
*/
@FunctionalInterface
public interface PredicateException<T, E extends Exception> {

View File

@@ -2,6 +2,7 @@ package fr.pandacube.lib.util.function;
/**
* A runnable that can possibly throw a checked exception.
* @param <E> the exception type that this interface method can throw.
*/
@FunctionalInterface
public interface RunnableException<E extends Exception> {

View File

@@ -2,6 +2,8 @@ package fr.pandacube.lib.util.function;
/**
* A supplier that can possibly throw a checked exception.
* @param <T> the return type of this supplier.
* @param <E> the exception type that this interface method can throw.
*/
@FunctionalInterface
public interface SupplierException<T, E extends Exception> {

View File

@@ -2,6 +2,9 @@ package fr.pandacube.lib.util.function;
/**
* A function that can possibly throw a checked exception.
* @param <T> the first parameter for this bi-function.
* @param <U> the second parameter for this bi-function.
* @param <E> the exception type that this interface method can throw.
*/
@FunctionalInterface
public interface ToIntBiFunctionException<T, U, E extends Exception> {

View File

@@ -2,6 +2,10 @@ package fr.pandacube.lib.util.function;
/**
* A consumer that can possibly throw a checked exception.
* @param <T> the first parameter for this tri-consumer.
* @param <U> the second parameter for this tri-consumer.
* @param <V> the third parameter for this tri-consumer.
* @param <E> the exception type that this interface method can throw.
*/
@FunctionalInterface
public interface TriConsumerException<T, U, V, E extends Exception> {