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:
@@ -104,4 +104,7 @@ public class DistanceUtil {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private DistanceUtil() {}
|
||||
|
||||
}
|
||||
|
@@ -84,4 +84,6 @@ public class EnumUtil {
|
||||
return RandomUtil.arrayElement(enumType.getEnumConstants());
|
||||
}
|
||||
|
||||
private EnumUtil() {}
|
||||
|
||||
}
|
||||
|
@@ -52,4 +52,7 @@ public class FileUtils {
|
||||
Files.copy(source.toPath(), target.toPath());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private FileUtils() {}
|
||||
}
|
||||
|
@@ -21,4 +21,8 @@ public class ListUtil {
|
||||
list.add(i);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private ListUtil() {}
|
||||
|
||||
}
|
||||
|
@@ -158,5 +158,7 @@ public class MemoryUtil {
|
||||
unitMultiplier = uMultiplier;
|
||||
}
|
||||
}
|
||||
|
||||
private MemoryUtil() {}
|
||||
|
||||
}
|
||||
|
@@ -97,6 +97,8 @@ public class MinecraftWebUtil {
|
||||
return builder.toString();
|
||||
|
||||
}
|
||||
|
||||
private MinecraftWebUtil() {}
|
||||
|
||||
|
||||
|
||||
|
@@ -10,7 +10,7 @@ import java.util.UUID;
|
||||
* <p>
|
||||
* You can generate the UUID programmatically using {@link #getFromNickName(String)} and
|
||||
* {@link #getFromNickNames(String[])}.
|
||||
*
|
||||
* <p>
|
||||
* To use this class as a program, type
|
||||
* <pre>
|
||||
* java -cp<anyClassPathContainingThisClass> fr.pandacube.lib.util.OfflineUUID [playernames...]
|
||||
@@ -67,4 +67,6 @@ public class OfflineUUID {
|
||||
System.out.println(arg + "\t" + getFromNickName(arg));
|
||||
}
|
||||
}
|
||||
|
||||
private OfflineUUID() {}
|
||||
}
|
||||
|
@@ -172,7 +172,7 @@ public class RandomUtil {
|
||||
return String.valueOf(pw);
|
||||
}
|
||||
|
||||
|
||||
private RandomUtil() {}
|
||||
|
||||
|
||||
}
|
||||
|
@@ -146,6 +146,6 @@ public class StringUtil {
|
||||
|
||||
|
||||
|
||||
|
||||
private StringUtil() {}
|
||||
|
||||
}
|
||||
|
@@ -147,5 +147,6 @@ public class ThrowableUtil {
|
||||
return new RuntimeException(t);
|
||||
}
|
||||
|
||||
private ThrowableUtil() {}
|
||||
|
||||
}
|
||||
|
@@ -56,4 +56,6 @@ public class Tick {
|
||||
return Duration.ofMillis(toMs(tick));
|
||||
}
|
||||
|
||||
private Tick() {}
|
||||
|
||||
}
|
||||
|
@@ -481,4 +481,7 @@ public class TimeUtil {
|
||||
}
|
||||
|
||||
|
||||
private TimeUtil() {}
|
||||
|
||||
|
||||
}
|
||||
|
@@ -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> {
|
||||
|
@@ -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> {
|
||||
|
@@ -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> {
|
||||
|
@@ -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> {
|
||||
|
@@ -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> {
|
||||
|
@@ -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> {
|
||||
|
@@ -30,6 +30,11 @@ public class DailyLogRotateFileHandler extends Handler {
|
||||
private String currentFileDate = getCurrentDay();
|
||||
private boolean closed = false;
|
||||
|
||||
/**
|
||||
* Creates a new {@link DailyLogRotateFileHandler}.
|
||||
*/
|
||||
public DailyLogRotateFileHandler() {}
|
||||
|
||||
|
||||
@Override
|
||||
public synchronized void close() throws SecurityException {
|
||||
|
@@ -159,4 +159,6 @@ public final class Log {
|
||||
logger.info(message);
|
||||
}
|
||||
|
||||
private Log() {}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user