(Collection<T> collection)
| 116 | } |
| 117 | |
| 118 | public static <T> Collection<T> assertNotEmpty(Collection<T> collection) { |
| 119 | if (collection == null || collection.isEmpty()) { |
| 120 | throwAssert("collection must be not null and not empty"); |
| 121 | } |
| 122 | return collection; |
| 123 | } |
| 124 | |
| 125 | // @Contract("null,_-> fail") |
| 126 | public static <T> Collection<T> assertNotEmpty(Collection<T> collection, Supplier<String> msg) { |
no test coverage detected