diff --git a/sa-token-starter/sa-token-jboot-plugin/src/main/java/cn/dev33/satoken/jboot/PathAnalyzer.java b/sa-token-starter/sa-token-jboot-plugin/src/main/java/cn/dev33/satoken/jboot/PathAnalyzer.java index 3667207c..a25f996d 100644 --- a/sa-token-starter/sa-token-jboot-plugin/src/main/java/cn/dev33/satoken/jboot/PathAnalyzer.java +++ b/sa-token-starter/sa-token-jboot-plugin/src/main/java/cn/dev33/satoken/jboot/PathAnalyzer.java @@ -7,7 +7,7 @@ import java.util.regex.Pattern; public class PathAnalyzer { - private static Map cached = new LinkedHashMap(); + private static Map cached = new LinkedHashMap<>(); private Pattern pattern; public static PathAnalyzer get(String expr) { diff --git a/sa-token-starter/sa-token-jboot-plugin/src/main/java/cn/dev33/satoken/jboot/SaJedisImpl.java b/sa-token-starter/sa-token-jboot-plugin/src/main/java/cn/dev33/satoken/jboot/SaJedisImpl.java index 652aabd0..35d46a03 100644 --- a/sa-token-starter/sa-token-jboot-plugin/src/main/java/cn/dev33/satoken/jboot/SaJedisImpl.java +++ b/sa-token-starter/sa-token-jboot-plugin/src/main/java/cn/dev33/satoken/jboot/SaJedisImpl.java @@ -23,7 +23,8 @@ public class SaJedisImpl { private final JbootSerializer serializer; protected JedisPool jedisPool; - private static final Log LOG = Log.getLog(SaJedisImpl.class); + @SuppressWarnings("unused") + private static final Log LOG = Log.getLog(SaJedisImpl.class); private final SaRedisConfig config; public SaJedisImpl(SaRedisConfig config) { if (config == null || StrUtil.isBlank(config.getSerializer())) { diff --git a/sa-token-starter/sa-token-jfinal-plugin/src/main/java/cn/dev33/satoken/jfinal/PathAnalyzer.java b/sa-token-starter/sa-token-jfinal-plugin/src/main/java/cn/dev33/satoken/jfinal/PathAnalyzer.java index 257e50f2..0193484e 100644 --- a/sa-token-starter/sa-token-jfinal-plugin/src/main/java/cn/dev33/satoken/jfinal/PathAnalyzer.java +++ b/sa-token-starter/sa-token-jfinal-plugin/src/main/java/cn/dev33/satoken/jfinal/PathAnalyzer.java @@ -7,7 +7,7 @@ import java.util.regex.Pattern; public class PathAnalyzer { - private static Map cached = new LinkedHashMap(); + private static Map cached = new LinkedHashMap<>(); private Pattern pattern; public static PathAnalyzer get(String expr) {