mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
ES文档点集修改,Sonar序列化问题修改
This commit is contained in:
-2
@@ -3,7 +3,6 @@ package com.cf.imes.framework.common.exception.util;
|
||||
import com.cf.imes.framework.common.exception.ErrorCode;
|
||||
import com.cf.imes.framework.common.exception.ServiceException;
|
||||
import com.cf.imes.framework.common.exception.enums.GlobalErrorCodeConstants;
|
||||
import com.google.common.annotations.VisibleForTesting;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import java.util.Map;
|
||||
@@ -95,7 +94,6 @@ public class ServiceExceptionUtil {
|
||||
* @param params 参数
|
||||
* @return 格式化后的提示
|
||||
*/
|
||||
@VisibleForTesting
|
||||
public static String doFormat(int code, String messagePattern, Object... params) {
|
||||
StringBuilder sbuf = new StringBuilder(messagePattern.length() + 50);
|
||||
int i = 0;
|
||||
|
||||
+17
@@ -7,6 +7,8 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import lombok.Data;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.util.Objects;
|
||||
|
||||
@@ -109,4 +111,19 @@ public class CommonResult<T> implements Serializable {
|
||||
return error(serviceException.getCode(), serviceException.getMessage());
|
||||
}
|
||||
|
||||
|
||||
@Serial
|
||||
private void writeObject(java.io.ObjectOutputStream stream)
|
||||
throws IOException {
|
||||
stream.defaultWriteObject();
|
||||
}
|
||||
|
||||
@Serial
|
||||
private void readObject(java.io.ObjectInputStream stream)
|
||||
throws IOException, ClassNotFoundException {
|
||||
stream.defaultReadObject();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
+14
@@ -3,6 +3,8 @@ package com.cf.imes.framework.common.pojo;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -40,4 +42,16 @@ public final class PageResult<T> implements Serializable {
|
||||
return new PageResult<>(total);
|
||||
}
|
||||
|
||||
@Serial
|
||||
private void writeObject(java.io.ObjectOutputStream stream)
|
||||
throws IOException {
|
||||
stream.defaultWriteObject();
|
||||
}
|
||||
|
||||
@Serial
|
||||
private void readObject(java.io.ObjectInputStream stream)
|
||||
throws IOException, ClassNotFoundException {
|
||||
stream.defaultReadObject();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+17
@@ -9,6 +9,9 @@ import org.springframework.aop.support.AbstractPointcutAdvisor;
|
||||
import org.springframework.aop.support.ComposablePointcut;
|
||||
import org.springframework.aop.support.annotation.AnnotationMatchingPointcut;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* {@link DataPermission} 注解的 Advisor 实现类
|
||||
*
|
||||
@@ -33,4 +36,18 @@ public class DataPermissionAnnotationAdvisor extends AbstractPointcutAdvisor {
|
||||
return new ComposablePointcut(classPointcut).union(methodPointcut);
|
||||
}
|
||||
|
||||
|
||||
@Serial
|
||||
private void writeObject(java.io.ObjectOutputStream stream)
|
||||
throws IOException {
|
||||
stream.defaultWriteObject();
|
||||
}
|
||||
|
||||
@Serial
|
||||
private void readObject(java.io.ObjectInputStream stream)
|
||||
throws IOException, ClassNotFoundException {
|
||||
stream.defaultReadObject();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
-4
@@ -260,10 +260,6 @@ public class InvocableHandlerMethod extends HandlerMethod {
|
||||
return this.returnType.getType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public AsyncResultMethodParameter clone() {
|
||||
return new AsyncResultMethodParameter(this);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user