移除不必要final

This commit is contained in:
若初 2023-08-21 17:15:38 +08:00
parent 180fe0791b
commit 4c65c0be08
7 changed files with 6 additions and 8 deletions

View File

@ -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>

View File

@ -34,7 +34,7 @@ public class SaApplication implements SaSetValueInterface {
/**
* 默认实例
*/
public final static SaApplication defaultInstance = new SaApplication();
public static SaApplication defaultInstance = new SaApplication();
// ---- 实现接口存取值方法

View File

@ -29,7 +29,7 @@ public class SaBasicUtil {
/**
* 底层使用的 SaBasicTemplate 对象
*/
public final static SaBasicTemplate saBasicTemplate = new SaBasicTemplate();
public static SaBasicTemplate saBasicTemplate = new SaBasicTemplate();
/**
* 获取浏览器提交的 Basic 参数 裁剪掉前缀并解码

View File

@ -42,7 +42,7 @@ public class SaTokenConfigFactory {
/**
* 配置文件地址
*/
public final static String configPath = "sa-token.properties";
public static String configPath = "sa-token.properties";
/**
* 根据 configPath 路径获取配置信息

View File

@ -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 存储器 ]

View File

@ -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<>();
/**
* 构造函数

View File

@ -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;
/**