Skip to content

Commit cfee63f

Browse files
committed
minor change
1 parent 453b749 commit cfee63f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/main/java/org/xmlobjects/util/copy/CopyContext.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import java.util.IdentityHashMap;
99
import java.util.Map;
10-
import java.util.function.Supplier;
1110

1211
public class CopyContext {
1312
private static final Object NULL_CLONE = new Object();
@@ -39,9 +38,9 @@ boolean isNullClone(Object src) {
3938
return src == null || src == NULL_CLONE;
4039
}
4140

42-
public <T> CopyContext withClone(T src, Supplier<T> supplier) {
41+
public <T> CopyContext withClone(T src, T dest) {
4342
if (src != null) {
44-
addClone(src, supplier.get());
43+
addClone(src, dest);
4544
}
4645

4746
return this;

0 commit comments

Comments
 (0)