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