mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-03-08 07:41:09 +08:00
update 优化 消除编译相关提醒
This commit is contained in:
@@ -23,7 +23,7 @@ import java.util.function.Supplier;
|
|||||||
* @version 3.5.0
|
* @version 3.5.0
|
||||||
*/
|
*/
|
||||||
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
||||||
@SuppressWarnings("unchecked cast")
|
@SuppressWarnings("unchecked")
|
||||||
public class DataPermissionHelper {
|
public class DataPermissionHelper {
|
||||||
|
|
||||||
private static final String DATA_PERMISSION_KEY = "data:permission";
|
private static final String DATA_PERMISSION_KEY = "data:permission";
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ public class PlusSaTokenDao implements SaTokenDaoBySessionFollowObject {
|
|||||||
* @param key 键名称
|
* @param key 键名称
|
||||||
* @return object
|
* @return object
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked cast")
|
@SuppressWarnings("unchecked")
|
||||||
@Override
|
@Override
|
||||||
public <T> T getObject(String key, Class<T> classType) {
|
public <T> T getObject(String key, Class<T> classType) {
|
||||||
Object o = CAFFEINE.get(key, k -> RedisUtils.getCacheObject(key));
|
Object o = CAFFEINE.get(key, k -> RedisUtils.getCacheObject(key));
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ public class LoginHelper {
|
|||||||
/**
|
/**
|
||||||
* 获取用户(多级缓存)
|
* 获取用户(多级缓存)
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked cast")
|
@SuppressWarnings("unchecked")
|
||||||
public static <T extends LoginUser> T getLoginUser() {
|
public static <T extends LoginUser> T getLoginUser() {
|
||||||
SaSession session = StpUtil.getTokenSession();
|
SaSession session = StpUtil.getTokenSession();
|
||||||
if (ObjectUtil.isNull(session)) {
|
if (ObjectUtil.isNull(session)) {
|
||||||
@@ -75,7 +75,7 @@ public class LoginHelper {
|
|||||||
/**
|
/**
|
||||||
* 获取用户基于token
|
* 获取用户基于token
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked cast")
|
@SuppressWarnings("unchecked")
|
||||||
public static <T extends LoginUser> T getLoginUser(String token) {
|
public static <T extends LoginUser> T getLoginUser(String token) {
|
||||||
SaSession session = StpUtil.getTokenSessionByToken(token);
|
SaSession session = StpUtil.getTokenSessionByToken(token);
|
||||||
if (ObjectUtil.isNull(session)) {
|
if (ObjectUtil.isNull(session)) {
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ import java.util.stream.IntStream;
|
|||||||
*
|
*
|
||||||
* @author 老马
|
* @author 老马
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings({"unchecked", "rawtypes"})
|
||||||
@Component
|
@Component
|
||||||
@JobExecutor(name = "testMapJobAnnotation")
|
@JobExecutor(name = "testMapJobAnnotation")
|
||||||
public class TestMapJobAnnotation {
|
public class TestMapJobAnnotation {
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ import java.util.stream.IntStream;
|
|||||||
*
|
*
|
||||||
* @author 老马
|
* @author 老马
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings({"unchecked", "rawtypes"})
|
||||||
@Component
|
@Component
|
||||||
@JobExecutor(name = "testMapReduceAnnotation1")
|
@JobExecutor(name = "testMapReduceAnnotation1")
|
||||||
public class TestMapReduceAnnotation1 {
|
public class TestMapReduceAnnotation1 {
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ public class FlwNodeExtServiceImpl implements NodeExtService, IFlwNodeExtService
|
|||||||
* @param sources 数据来源(枚举类或字典类型)
|
* @param sources 数据来源(枚举类或字典类型)
|
||||||
* @return 构建的 `NodeExt` 对象
|
* @return 构建的 `NodeExt` 对象
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked cast")
|
@SuppressWarnings("unchecked")
|
||||||
private NodeExt buildNodeExt(String code, String name, int type, List<Object> sources) {
|
private NodeExt buildNodeExt(String code, String name, int type, List<Object> sources) {
|
||||||
NodeExt nodeExt = new NodeExt();
|
NodeExt nodeExt = new NodeExt();
|
||||||
nodeExt.setCode(code);
|
nodeExt.setCode(code);
|
||||||
|
|||||||
Reference in New Issue
Block a user