@@ -241,9 +241,10 @@ public static org.hamcrest.Matcher<java.lang.Object> anything(java.lang.String d
241241 *
242242 * @param itemMatcher
243243 * the matcher to apply to items provided by the examined {@link Iterable}
244+ * @Deprecated use org.hamcrest.MatchingCollections instead
244245 */
245246 public static <T > org .hamcrest .Matcher <java .lang .Iterable <? super T >> hasItem (org .hamcrest .Matcher <? super T > itemMatcher ) {
246- return IsCollectionContaining .< T > hasItem (itemMatcher );
247+ return MatchingCollections . hasItem (itemMatcher );
247248 }
248249
249250 /**
@@ -256,9 +257,10 @@ public static <T> org.hamcrest.Matcher<java.lang.Iterable<? super T>> hasItem(or
256257 *
257258 * @param item
258259 * the item to compare against the items provided by the examined {@link Iterable}
260+ * @Deprecated use org.hamcrest.MatchingCollections instead
259261 */
260262 public static <T > org .hamcrest .Matcher <java .lang .Iterable <? super T >> hasItem (T item ) {
261- return IsCollectionContaining .< T > hasItem (item );
263+ return MatchingCollections . hasItem (item );
262264 }
263265
264266 /**
@@ -271,9 +273,10 @@ public static <T> org.hamcrest.Matcher<java.lang.Iterable<? super T>> hasItem(T
271273 *
272274 * @param itemMatchers
273275 * the matchers to apply to items provided by the examined {@link Iterable}
276+ * @Deprecated use org.hamcrest.MatchingCollections instead
274277 */
275278 public static <T > org .hamcrest .Matcher <java .lang .Iterable <T >> hasItems (org .hamcrest .Matcher <? super T >... itemMatchers ) {
276- return IsCollectionContaining .< T > hasItems (itemMatchers );
279+ return MatchingCollections . hasItems (itemMatchers );
277280 }
278281
279282 /**
@@ -286,9 +289,10 @@ public static <T> org.hamcrest.Matcher<java.lang.Iterable<T>> hasItems(org.hamcr
286289 *
287290 * @param items
288291 * the items to compare against the items provided by the examined {@link Iterable}
292+ * @Deprecated use org.hamcrest.MatchingCollections instead
289293 */
290294 public static <T > org .hamcrest .Matcher <java .lang .Iterable <T >> hasItems (T ... items ) {
291- return IsCollectionContaining .< T > hasItems (items );
295+ return MatchingCollections . hasItems (items );
292296 }
293297
294298 /**
0 commit comments