BAEL-2969: Copying sets in Java

This commit is contained in:
codehunter34 2019-06-10 01:48:14 -04:00
parent fdf3b86d72
commit 8899b80818
1 changed files with 0 additions and 6 deletions

View File

@ -56,10 +56,4 @@ public class CopySets {
return copy; return copy;
} }
// Using Java 10
public static <T> Set<T> copyBySetCopyOf(Set<T> original) {
Set<T> copy = Set.copyOf(original);
return copy;
}
} }