修复 sa-token-alone-redis 模块代码警告

This commit is contained in:
click33 2023-05-16 16:06:24 +08:00
parent 5699977f62
commit e00900f4ea

View File

@ -194,7 +194,7 @@ public class SaAloneRedisInject implements EnvironmentAware{
dao.isInit = false;
dao.init(factory);
return;
} catch (ClassNotFoundException e) {
} catch (ClassNotFoundException ignored) {
}
// 如果开发者引入的是sa-token-redis-jackson
try {
@ -203,7 +203,7 @@ public class SaAloneRedisInject implements EnvironmentAware{
dao.isInit = false;
dao.init(factory);
return;
} catch (ClassNotFoundException e) {
} catch (ClassNotFoundException ignored) {
}
// 如果开发者引入的是sa-token-redis-fastjson
try {
@ -212,7 +212,7 @@ public class SaAloneRedisInject implements EnvironmentAware{
dao.isInit = false;
dao.init(factory);
return;
} catch (ClassNotFoundException e) {
} catch (ClassNotFoundException ignored) {
}
// 如果开发者引入的是sa-token-redis-fastjson2
try {
@ -221,7 +221,7 @@ public class SaAloneRedisInject implements EnvironmentAware{
dao.isInit = false;
dao.init(factory);
return;
} catch (ClassNotFoundException e) {
} catch (ClassNotFoundException ignored) {
}
// 至此说明开发者一个 redis 插件也没引入或者引入的 redis 插件不在 sa-token-alone-redis 的支持范围内