【fix sonar】PmsUtil文件
This commit is contained in:
+5
@@ -19,8 +19,13 @@ public class PmsUtil {
|
|||||||
|
|
||||||
@Value("${jero.path.upload}")
|
@Value("${jero.path.upload}")
|
||||||
public void setUploadPath(String uploadPath) {
|
public void setUploadPath(String uploadPath) {
|
||||||
|
synchronized (PmsUtil.class){
|
||||||
|
if(PmsUtil.uploadPath == null){
|
||||||
PmsUtil.uploadPath = uploadPath;
|
PmsUtil.uploadPath = uploadPath;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public static String saveErrorTxtByList(List<String> msg, String name) {
|
public static String saveErrorTxtByList(List<String> msg, String name) {
|
||||||
Date d = new Date();
|
Date d = new Date();
|
||||||
|
|||||||
Reference in New Issue
Block a user