Fix IDManager.java note. (#5563)

This commit is contained in:
Ax1an 2020-09-26 17:18:29 +08:00 committed by GitHub
parent ea69ae6a58
commit 1a27452ffc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -275,14 +275,14 @@ public class IDManager {
/**
* @param text normal literal string
* @return Base74 encoded UTF-8 string
* @return Base64 encoded UTF-8 string
*/
private static String encode(String text) {
return new String(Base64.getEncoder().encode(text.getBytes(StandardCharsets.UTF_8)), StandardCharsets.UTF_8);
}
/**
* @param base64text Base74 encoded UTF-8 string
* @param base64text Base64 encoded UTF-8 string
* @return normal literal string
*/
private static String decode(String base64text) {