feat: use the same private constructor comment within the whole repository

This commit is contained in:
zihluwang
2025-04-02 20:54:17 +08:00
parent 5f892b34b0
commit 68bf18d944
12 changed files with 13 additions and 15 deletions
@@ -158,7 +158,7 @@ public final class AesUtil {
}
/**
* Private constructor will protect this class from being instantiated.
* Private constructor to prevent instantiation of this utility class.
*/
private AesUtil() {
}
@@ -109,7 +109,7 @@ public final class Base64Util {
}
/**
* Private constructor to prevent instantiation of the class.
* Private constructor to prevent instantiation of this utility class.
*/
private Base64Util() {
}
@@ -98,7 +98,7 @@ public final class BoolUtil {
}
/**
* Private constructor prevent from being initialised.
* Private constructor to prevent instantiation of this utility class.
*/
private BoolUtil() {}
@@ -229,7 +229,7 @@ public final class HashUtil {
}
/**
* Private constructor will protect this class from being instantiated.
* Private constructor to prevent instantiation of this utility class.
*/
private HashUtil() {
}
@@ -113,7 +113,7 @@ public final class MapUtil {
}
/**
* Private constructor prevent class being instantiated.
* Private constructor to prevent instantiation of this utility class.
*/
private MapUtil() {
}
@@ -37,7 +37,7 @@ public final class RangeUtil {
private final static Logger log = LoggerFactory.getLogger(RangeUtil.class);
/**
* Private constructor prevent class being instantiated.
* Private constructor to prevent instantiation of this utility class.
*/
private RangeUtil() {
}
@@ -240,7 +240,7 @@ public final class ReflectMapUtil {
}
/**
* Private constructor will protect this class from being instantiated.
* Private constructor to prevent instantiation of this utility class.
*/
private ReflectMapUtil() {
}
@@ -54,7 +54,7 @@ public final class PercentileCalculator {
private final static Logger log = LoggerFactory.getLogger(PercentileCalculator.class);
/**
* Private constructor prevents from being initialised.
* Private constructor to prevent instantiation of this utility class.
*/
private PercentileCalculator() {
}
@@ -86,8 +86,7 @@ public record QuartileBounds(
private Double lowerBound;
/**
* Private constructor for {@code Builder}, ensuring it can only be instantiated through the
* {@link QuartileBounds#builder()} method.
* Private constructor to prevent instantiation of this utility class.
*/
private Builder() {
}
@@ -155,8 +155,7 @@ public class AuthzeroTokenResolver implements TokenResolver<DecodedJWT> {
private ECPublicKey publicKey;
/**
* Private constructor prevents this class being initialised at somewhere it should not
* be initialised.
* Private constructor to prevent instantiation of this utility class.
*/
private Builder() {
}
@@ -643,7 +642,7 @@ public class AuthzeroTokenResolver implements TokenResolver<DecodedJWT> {
);
/**
* Private constructor prevent this class being initialised mistakenly.
* Private constructor to prevent instantiation of this utility class.
*
* @param jtiCreator a creator that can create JWT id
* @param algorithm an algorithm to sign this JWT
@@ -128,7 +128,7 @@ public final class SecretCreator {
}
/**
* Private constructor will protect this class from being instantiated.
* Private constructor to prevent instantiation of this utility class.
*/
private SecretCreator() {
}
@@ -90,7 +90,7 @@ public final class PredefinedKeys {
List.of(ISSUER, SUBJECT, AUDIENCE, EXPIRATION_TIME, NOT_BEFORE, ISSUED_AT, JWT_ID);
/**
* Private constructor will protect this class from being instantiated.
* Private constructor to prevent instantiation of this utility class.
*/
private PredefinedKeys() {
}