From 1d60239d22d8ff0def9843586e93d05ee3071750 Mon Sep 17 00:00:00 2001 From: click33 <2393584716@qq.com> Date: Fri, 11 Feb 2022 23:11:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E5=87=BA=E8=AD=A6=E5=91=8A=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/cn/dev33/satoken/jboot/PathAnalyzer.java | 2 +- .../src/main/java/cn/dev33/satoken/jboot/SaJedisImpl.java | 3 ++- .../src/main/java/cn/dev33/satoken/jfinal/PathAnalyzer.java | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) 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) {