v3.0.0 GA Integer to Long

上级 9fd31d14
......@@ -90,7 +90,7 @@ public class BeanConvert {
}else if(fieldType.equals("long")){
value=Long.parseLong(fillValue);
}else if(fieldType.equals("java.lang.Long")){
value=new Long(fillValue);
value= Long.parseLong(fillValue);
}else if(fieldType.equals("double")){
value=(double)Double.valueOf(fillValue);
}else if(fieldType.equals("java.lang.Double")){
......
package org.maxkey;
public class Integer2LongTest {
public static void main(String[] args) {
// TODO Auto-generated method stub
Integer intValue =20000;
Long v=Integer.toUnsignedLong(intValue);
System.out.println(v);
System.out.println(v.getClass());
}
}
......@@ -252,7 +252,7 @@ public class JwtAccessTokenConverter implements TokenEnhancer, AccessTokenConver
Map<String, Object> map = objectMapper.parseMap(content);
if (map.containsKey(EXP) && map.get(EXP) instanceof Integer) {
Integer intValue = (Integer) map.get(EXP);
map.put(EXP, new Long(intValue));
map.put(EXP, Integer.toUnsignedLong(intValue));
}
return map;
} catch (Exception e) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册