mirror of
https://github.com/continew-org/continew-starter.git
synced 2025-09-09 20:57:23 +08:00
style: 优化代码格式
This commit is contained in:
@@ -26,7 +26,7 @@ import java.io.IOException;
|
||||
/**
|
||||
* 大数值序列化器
|
||||
* <p>
|
||||
* 将 JS 取值范围之外的数值转换为字符串
|
||||
* 将 JS 取值范围之外的数值转换为字符串
|
||||
* </p>
|
||||
*
|
||||
* @author Charles7c
|
||||
@@ -35,11 +35,17 @@ import java.io.IOException;
|
||||
@JacksonStdImpl
|
||||
public class BigNumberSerializer extends NumberSerializer {
|
||||
|
||||
/** 静态实例 */
|
||||
/**
|
||||
* 静态实例
|
||||
*/
|
||||
public static final BigNumberSerializer SERIALIZER_INSTANCE = new BigNumberSerializer(Number.class);
|
||||
/** JS:Number.MAX_SAFE_INTEGER */
|
||||
/**
|
||||
* JS:Number.MAX_SAFE_INTEGER
|
||||
*/
|
||||
private static final long MAX_SAFE_INTEGER = 9007199254740991L;
|
||||
/** JS:Number.MIN_SAFE_INTEGER */
|
||||
/**
|
||||
* JS:Number.MIN_SAFE_INTEGER
|
||||
*/
|
||||
private static final long MIN_SAFE_INTEGER = -9007199254740991L;
|
||||
|
||||
public BigNumberSerializer(Class<? extends Number> rawType) {
|
||||
|
Reference in New Issue
Block a user