mirror of
https://gitee.com/dromara/sa-token.git
synced 2026-02-26 21:52:49 +08:00
移除不必要final
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>cn.dev33</groupId>
|
||||
<artifactId>sa-token-parent</artifactId>
|
||||
|
||||
@@ -34,7 +34,7 @@ public class SaApplication implements SaSetValueInterface {
|
||||
/**
|
||||
* 默认实例
|
||||
*/
|
||||
public final static SaApplication defaultInstance = new SaApplication();
|
||||
public static SaApplication defaultInstance = new SaApplication();
|
||||
|
||||
// ---- 实现接口存取值方法
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ public class SaBasicUtil {
|
||||
/**
|
||||
* 底层使用的 SaBasicTemplate 对象
|
||||
*/
|
||||
public final static SaBasicTemplate saBasicTemplate = new SaBasicTemplate();
|
||||
public static SaBasicTemplate saBasicTemplate = new SaBasicTemplate();
|
||||
|
||||
/**
|
||||
* 获取浏览器提交的 Basic 参数 (裁剪掉前缀并解码)
|
||||
|
||||
@@ -42,7 +42,7 @@ public class SaTokenConfigFactory {
|
||||
/**
|
||||
* 配置文件地址
|
||||
*/
|
||||
public final static String configPath = "sa-token.properties";
|
||||
public static String configPath = "sa-token.properties";
|
||||
|
||||
/**
|
||||
* 根据 configPath 路径获取配置信息
|
||||
|
||||
@@ -34,7 +34,7 @@ public class SaTokenContextForThreadLocalStorage {
|
||||
/**
|
||||
* 基于 ThreadLocal 的 [ Box 存储器 ]
|
||||
*/
|
||||
public static final ThreadLocal<Box> boxThreadLocal = new InheritableThreadLocal<>();
|
||||
public static ThreadLocal<Box> boxThreadLocal = new InheritableThreadLocal<>();
|
||||
|
||||
/**
|
||||
* 初始化当前线程的 [ Box 存储器 ]
|
||||
|
||||
@@ -34,12 +34,12 @@ public class SaTokenDaoDefaultImpl implements SaTokenDao {
|
||||
/**
|
||||
* 存储数据的集合
|
||||
*/
|
||||
public final Map<String, Object> dataMap = new ConcurrentHashMap<>();
|
||||
public Map<String, Object> dataMap = new ConcurrentHashMap<>();
|
||||
|
||||
/**
|
||||
* 存储数据过期时间的集合(单位: 毫秒), 记录所有 key 的到期时间 (注意存储的是到期时间,不是剩余存活时间)
|
||||
*/
|
||||
public final Map<String, Long> expireMap = new ConcurrentHashMap<>();
|
||||
public Map<String, Long> expireMap = new ConcurrentHashMap<>();
|
||||
|
||||
/**
|
||||
* 构造函数
|
||||
|
||||
@@ -31,7 +31,6 @@ import java.security.spec.PKCS8EncodedKeySpec;
|
||||
import java.security.spec.X509EncodedKeySpec;
|
||||
import java.util.Base64;
|
||||
import java.util.HashMap;
|
||||
import java.util.Objects;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user