mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix name
This commit is contained in:
@@ -15,7 +15,7 @@ package org.dromara.hutool.core.io.file;
|
||||
import org.dromara.hutool.core.io.IORuntimeException;
|
||||
import org.dromara.hutool.core.io.file.visitor.CopyVisitor;
|
||||
import org.dromara.hutool.core.lang.Assert;
|
||||
import org.dromara.hutool.core.lang.copier.SrcToDestCopier;
|
||||
import org.dromara.hutool.core.lang.copier.SrcToTargetCopier;
|
||||
import org.dromara.hutool.core.util.ObjUtil;
|
||||
|
||||
import java.io.IOException;
|
||||
@@ -27,7 +27,7 @@ import java.nio.file.*;
|
||||
* @author looly
|
||||
* @since 6.0.0
|
||||
*/
|
||||
public class PathCopier extends SrcToDestCopier<Path, PathCopier> {
|
||||
public class PathCopier extends SrcToTargetCopier<Path, PathCopier> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
|
@@ -265,7 +265,7 @@ public class PathUtil {
|
||||
* @since 5.8.27
|
||||
*/
|
||||
public static Path copy(final InputStream src, final Path target, final CopyOption... options) throws IORuntimeException {
|
||||
Assert.notNull(target, "Destination File or directory is null !");
|
||||
Assert.notNull(target, "Target File or directory is null !");
|
||||
|
||||
// 创建级联父目录
|
||||
mkParentDirs(target);
|
||||
|
@@ -25,7 +25,7 @@ import java.util.function.Predicate;
|
||||
* @param <C> 本类的类型。用于set方法返回本对象,方便流式编程
|
||||
* @since 3.0.9
|
||||
*/
|
||||
public abstract class SrcToDestCopier<T, C extends SrcToDestCopier<T, C>> implements Copier<T>, Serializable{
|
||||
public abstract class SrcToTargetCopier<T, C extends SrcToTargetCopier<T, C>> implements Copier<T>, Serializable{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 源 */
|
Reference in New Issue
Block a user