review code.
This commit is contained in:
@@ -68,7 +68,7 @@ public interface FileClient {
|
||||
// TODO getOutputStream
|
||||
|
||||
/**
|
||||
* 检测文件是否存在
|
||||
* 检查文件是否存在
|
||||
*
|
||||
* @param path path
|
||||
* @return 是否存在
|
||||
|
||||
@@ -87,7 +87,7 @@ public class FileClientUtils {
|
||||
// TODO getOutputStream
|
||||
|
||||
/**
|
||||
* 检测文件是否存在
|
||||
* 检查文件是否存在
|
||||
*
|
||||
* @param path path
|
||||
* @return 是否存在
|
||||
|
||||
@@ -34,7 +34,7 @@ public class ValidateLambdaWrapper<T> extends LambdaQueryWrapper<T> {
|
||||
*/
|
||||
private boolean isIllegal(Object... objects) {
|
||||
for (Object object : objects) {
|
||||
// 非 null 检测
|
||||
// 非 null 检查
|
||||
if (object == null) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ public class LocalFileClient extends AbstractFileClient<LocalFileClientConfig> {
|
||||
protected String doUpload(String path, InputStream in, boolean autoClose, boolean overrideIfExist) {
|
||||
// 获取返回文件路径
|
||||
String returnPath = this.getReturnPath(path);
|
||||
// 检测文件是否存在
|
||||
// 检查文件是否存在
|
||||
if (!overrideIfExist && this.isExists(returnPath)) {
|
||||
return returnPath;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user