Skip to content

Commit 68bf18d

Browse files
author
zihluwang
committed
feat: use the same private constructor comment within the whole repository
1 parent 5f892b3 commit 68bf18d

File tree

12 files changed

+13
-15
lines changed

12 files changed

+13
-15
lines changed

devkit-utils/src/main/java/com/onixbyte/devkit/utils/AesUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public static String generateRandomSecret() {
158158
}
159159

160160
/**
161-
* Private constructor will protect this class from being instantiated.
161+
* Private constructor to prevent instantiation of this utility class.
162162
*/
163163
private AesUtil() {
164164
}

devkit-utils/src/main/java/com/onixbyte/devkit/utils/Base64Util.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public static Base64.Decoder getUrlDecoder() {
109109
}
110110

111111
/**
112-
* Private constructor to prevent instantiation of the class.
112+
* Private constructor to prevent instantiation of this utility class.
113113
*/
114114
private Base64Util() {
115115
}

devkit-utils/src/main/java/com/onixbyte/devkit/utils/BoolUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public static boolean or(BooleanSupplier... valueSuppliers) {
9898
}
9999

100100
/**
101-
* Private constructor prevent from being initialised.
101+
* Private constructor to prevent instantiation of this utility class.
102102
*/
103103
private BoolUtil() {}
104104

devkit-utils/src/main/java/com/onixbyte/devkit/utils/HashUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ public static String sha512(String value) {
229229
}
230230

231231
/**
232-
* Private constructor will protect this class from being instantiated.
232+
* Private constructor to prevent instantiation of this utility class.
233233
*/
234234
private HashUtil() {
235235
}

devkit-utils/src/main/java/com/onixbyte/devkit/utils/MapUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public static <T> T mapToObject(Map<String, Object> objectMap, ObjectMapAdapter<
113113
}
114114

115115
/**
116-
* Private constructor prevent class being instantiated.
116+
* Private constructor to prevent instantiation of this utility class.
117117
*/
118118
private MapUtil() {
119119
}

devkit-utils/src/main/java/com/onixbyte/devkit/utils/RangeUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public final class RangeUtil {
3737
private final static Logger log = LoggerFactory.getLogger(RangeUtil.class);
3838

3939
/**
40-
* Private constructor prevent class being instantiated.
40+
* Private constructor to prevent instantiation of this utility class.
4141
*/
4242
private RangeUtil() {
4343
}

map-util-unsafe/src/main/java/com/onixbyte/devkit/utils/unsafe/ReflectMapUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ private static String defaultObject(Object obj) {
240240
}
241241

242242
/**
243-
* Private constructor will protect this class from being instantiated.
243+
* Private constructor to prevent instantiation of this utility class.
244244
*/
245245
private ReflectMapUtil() {
246246
}

num4j/src/main/java/com/onixbyte/nums/PercentileCalculator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public final class PercentileCalculator {
5454
private final static Logger log = LoggerFactory.getLogger(PercentileCalculator.class);
5555

5656
/**
57-
* Private constructor prevents from being initialised.
57+
* Private constructor to prevent instantiation of this utility class.
5858
*/
5959
private PercentileCalculator() {
6060
}

num4j/src/main/java/com/onixbyte/nums/model/QuartileBounds.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ public static class Builder {
8686
private Double lowerBound;
8787

8888
/**
89-
* Private constructor for {@code Builder}, ensuring it can only be instantiated through the
90-
* {@link QuartileBounds#builder()} method.
89+
* Private constructor to prevent instantiation of this utility class.
9190
*/
9291
private Builder() {
9392
}

simple-jwt-authzero/src/main/java/com/onixbyte/simplejwt/authzero/AuthzeroTokenResolver.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,7 @@ public static class Builder {
155155
private ECPublicKey publicKey;
156156

157157
/**
158-
* Private constructor prevents this class being initialised at somewhere it should not
159-
* be initialised.
158+
* Private constructor to prevent instantiation of this utility class.
160159
*/
161160
private Builder() {
162161
}
@@ -643,7 +642,7 @@ public static class MapTypeReference extends TypeReference<Map<String, Object>>
643642
);
644643

645644
/**
646-
* Private constructor prevent this class being initialised mistakenly.
645+
* Private constructor to prevent instantiation of this utility class.
647646
*
648647
* @param jtiCreator a creator that can create JWT id
649648
* @param algorithm an algorithm to sign this JWT

0 commit comments

Comments
 (0)