Remove deprecated isPartiallyOrdered() methods, and hide failWithBadResultsAndSuffix().
Relnotes:
- Remove deprecated `isPartiallyOrdered()` methods. Use `isOrdered()`.
- Hide `protected` method `IterableSubject.failWithBadResultsAndSuffix()`.
@@ -489,7 +489,7 @@ public class IterableSubject extends Subject<IterableSubject, Iterable<?>> {
* @param actual the actual value the subject was compared against
* @param suffix a suffix to append to the failure message
*/
- protected final void failWithBadResultsAndSuffix(
+ private void failWithBadResultsAndSuffix(
String verb, Object expected, String failVerb, Object actual, String suffix) {
failWithRawMessage(
"Not true that %s %s <%s>. It %s <%s>%s",
@@ -639,18 +639,6 @@ public class IterableSubject extends Subject<IterableSubject, Iterable<?>> {
});
}
- /** @deprecated Use {@link #isOrdered} instead. */
- @Deprecated
- public final void isPartiallyOrdered() {
- isOrdered();
- }
-
- /** @deprecated Use {@link #isOrdered(Comparator)} instead. */
- @Deprecated
- public final void isPartiallyOrdered(final Comparator<?> comparator) {
- isOrdered(comparator);
- }
-
private interface PairwiseChecker {
boolean check(Object prev, Object next);
}
