(Set<T> set)
| 43 | } |
| 44 | |
| 45 | public static <T> Set<T> copySet(Set<T> set) { |
| 46 | if (set instanceof HashSet) { |
| 47 | return new HashSet<>(set); |
| 48 | } else { |
| 49 | return newIdentityHashSet(set); |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | public static String getStackTrace(Throwable t) { |
| 54 | if (t == null) return null; |
no test coverage detected