feat: use the same private constructor comment within the whole repository
This commit is contained in:
@@ -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() {
|
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() {
|
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() {}
|
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() {
|
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() {
|
private MapUtil() {
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ public final class RangeUtil {
|
|||||||
private final static Logger log = LoggerFactory.getLogger(RangeUtil.class);
|
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() {
|
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() {
|
private ReflectMapUtil() {
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ public final class PercentileCalculator {
|
|||||||
private final static Logger log = LoggerFactory.getLogger(PercentileCalculator.class);
|
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() {
|
private PercentileCalculator() {
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -86,8 +86,7 @@ public record QuartileBounds(
|
|||||||
private Double lowerBound;
|
private Double lowerBound;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Private constructor for {@code Builder}, ensuring it can only be instantiated through the
|
* Private constructor to prevent instantiation of this utility class.
|
||||||
* {@link QuartileBounds#builder()} method.
|
|
||||||
*/
|
*/
|
||||||
private Builder() {
|
private Builder() {
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-3
@@ -155,8 +155,7 @@ public class AuthzeroTokenResolver implements TokenResolver<DecodedJWT> {
|
|||||||
private ECPublicKey publicKey;
|
private ECPublicKey publicKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Private constructor prevents this class being initialised at somewhere it should not
|
* Private constructor to prevent instantiation of this utility class.
|
||||||
* be initialised.
|
|
||||||
*/
|
*/
|
||||||
private Builder() {
|
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 jtiCreator a creator that can create JWT id
|
||||||
* @param algorithm an algorithm to sign this JWT
|
* @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() {
|
private SecretCreator() {
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -90,7 +90,7 @@ public final class PredefinedKeys {
|
|||||||
List.of(ISSUER, SUBJECT, AUDIENCE, EXPIRATION_TIME, NOT_BEFORE, ISSUED_AT, JWT_ID);
|
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() {
|
private PredefinedKeys() {
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user