Use AssertionError(String, Throwable) instead of supplying the cause later.
I could have done this as part of cl/609415936 and cl/604677493, but I'd missed that AssertionError(String, Throwable) was added in API Level 19.
(The code in Platform in cl/609415936 still needs to use initCause because it uses ComparisonFailure, which does not expose a Throwable-accepting constructor.)
Use
AssertionError(String, Throwable)
instead of supplying the cause later.I could have done this as part of cl/609415936 and cl/604677493, but I'd missed that
AssertionError(String, Throwable)
was added in API Level 19.(The code in
Platform
in cl/609415936 still needs to useinitCause
because it usesComparisonFailure
, which does not expose aThrowable
-accepting constructor.)RELNOTES=n/a