Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use AssertionError(String, Throwable) instead of supplying the cause later. #1297

Merged
1 commit merged into from
May 29, 2024

Commits on May 29, 2024

  1. Use AssertionError(String, Throwable) instead of supplying the caus…

    …e 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](https://developer.android.com/reference/java/lang/AssertionError#AssertionError(java.lang.String,%20java.lang.Throwable)).
    
    (The code in `Platform` in cl/609415936 still needs to use `initCause` because it uses `ComparisonFailure`, which does not expose a `Throwable`-accepting constructor.)
    
    RELNOTES=n/a
    PiperOrigin-RevId: 638335715
    cpovirk authored and Google Java Core Libraries committed May 29, 2024
    Configuration menu
    Copy the full SHA
    7a1c72f View commit details
    Browse the repository at this point in the history