File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
devkit-utils/src/main/java/cn/org/codecrafters/devkit/utils Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -88,13 +88,23 @@ private static Base64.Decoder getDecoder() {
8888 return decoder ;
8989 }
9090
91+ /**
92+ * Ensure that there is only one Base64 URL Encoder.
93+ *
94+ * @return the {@link Base64.Encoder} instance
95+ */
9196 private static Base64 .Encoder getUrlEncoder () {
9297 if (Objects .isNull (urlEncoder )) {
9398 urlEncoder = Base64 .getUrlEncoder ();
9499 }
95100 return urlEncoder ;
96101 }
97102
103+ /**
104+ * Ensure that there is only one Base64 URL Decoder.
105+ *
106+ * @return the {@link Base64.Encoder} instance
107+ */
98108 public static Base64 .Decoder getUrlDecoder () {
99109 if (Objects .isNull (urlDecoder )) {
100110 urlDecoder = Base64 .getUrlDecoder ();
You can’t perform that action at this time.
0 commit comments