BAEL-2969: Copying sets in Java
This commit is contained in:
parent
fdf3b86d72
commit
8899b80818
|
@ -56,10 +56,4 @@ public class CopySets {
|
|||
return copy;
|
||||
}
|
||||
|
||||
// Using Java 10
|
||||
public static <T> Set<T> copyBySetCopyOf(Set<T> original) {
|
||||
Set<T> copy = Set.copyOf(original);
|
||||
return copy;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue