1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-09 09:09:38 +02:00

[sinttest] Allow the selection of individual test *methods*

This commit is contained in:
Florian Schmaus 2021-12-13 21:08:45 +01:00
parent 69a55aaa84
commit 10a2687ff1
4 changed files with 153 additions and 17 deletions

View file

@ -89,4 +89,11 @@ public class CollectionUtil {
}
return Collections.singletonList(element);
}
public static <T> Set<T> nullSafeUnmodifiableSet(Set<T> set) {
if (set == null) {
return Collections.emptySet();
}
return Collections.unmodifiableSet(set);
}
}