public class Unsafe extends Object
This class is excluded from the check, so methods called via this class will not fail the build.
public static <T> boolean matches(org.hamcrest.Matcher<T> matcher,
Object actual)
Matcher.matches(Object) is forbidden in regular test code in favour of
MatcherAssert.assertThat(T, org.hamcrest.Matcher<? super T>).
Note: Matcher#matches is still useful when testing matcher implementations.matcher - matcheractual - actual valueCopyright © 2012-2023 Apache Software Foundation. All Rights Reserved.