mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -80,7 +80,7 @@ public class AsymmetricJWTSigner implements JWTSigner {
|
||||
* @param data 数据
|
||||
* @return 签名
|
||||
*/
|
||||
protected byte[] sign(byte[] data) {
|
||||
protected byte[] sign(final byte[] data) {
|
||||
return sign.sign(data);
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ public class AsymmetricJWTSigner implements JWTSigner {
|
||||
* @param signed 签名
|
||||
* @return 是否通过
|
||||
*/
|
||||
protected boolean verify(byte[] data, byte[] signed) {
|
||||
protected boolean verify(final byte[] data, final byte[] signed) {
|
||||
return sign.verify(data, signed);
|
||||
}
|
||||
|
||||
|
@@ -19,7 +19,7 @@ import org.junit.jupiter.api.Test;
|
||||
|
||||
public class Issue3274Test {
|
||||
@Test
|
||||
public void toBeanTest(){
|
||||
public void toBeanTest() {
|
||||
final JSONObject entries = new JSONObject("{\n" +
|
||||
" \n" +
|
||||
" \"age\": 36,\n" +
|
||||
@@ -33,20 +33,21 @@ public class Issue3274Test {
|
||||
@Data
|
||||
static class LarkCoreHrPersonal {
|
||||
private String id;
|
||||
private String age="";
|
||||
private String age = "";
|
||||
private Gender gender;
|
||||
}
|
||||
|
||||
@Getter
|
||||
enum Gender {
|
||||
male("male","Male","男"),
|
||||
female("female","Female","女"),
|
||||
other("other","Other","其他");
|
||||
private JSONArray display;
|
||||
private String enum_name;
|
||||
Gender(final String enum_name, final String en_Us, final String zh_CN){
|
||||
this.enum_name=enum_name;
|
||||
this.display=new JSONArray("[{\"lang\": \"en-US\",\"value\": \""+en_Us+"\"},{\"lang\": \"zh-CN\",\"value\": \""+zh_CN+"\"}]");
|
||||
male("male", "Male", "男"),
|
||||
female("female", "Female", "女"),
|
||||
other("other", "Other", "其他");
|
||||
private final JSONArray display;
|
||||
private final String enum_name;
|
||||
|
||||
Gender(final String enum_name, final String en_Us, final String zh_CN) {
|
||||
this.enum_name = enum_name;
|
||||
this.display = new JSONArray("[{\"lang\": \"en-US\",\"value\": \"" + en_Us + "\"},{\"lang\": \"zh-CN\",\"value\": \"" + zh_CN + "\"}]");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -12,7 +12,6 @@
|
||||
|
||||
package org.dromara.hutool.json;
|
||||
|
||||
import org.dromara.hutool.core.lang.Console;
|
||||
import org.dromara.hutool.core.lang.tuple.Pair;
|
||||
import org.dromara.hutool.core.lang.tuple.Triple;
|
||||
import org.dromara.hutool.core.lang.tuple.Tuple;
|
||||
|
@@ -14,7 +14,6 @@ package org.dromara.hutool.json;
|
||||
|
||||
import org.dromara.hutool.core.collection.ListUtil;
|
||||
import org.dromara.hutool.core.date.DateUtil;
|
||||
import org.dromara.hutool.core.lang.Console;
|
||||
import org.dromara.hutool.core.map.MapUtil;
|
||||
import org.dromara.hutool.core.math.NumberUtil;
|
||||
import org.dromara.hutool.json.serialize.JSONStringer;
|
||||
|
Reference in New Issue
Block a user