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

Remove temporary type parameters. #1239

Merged
merged 1 commit into from
Feb 6, 2024
Merged

Commits on Feb 6, 2024

  1. Remove temporary type parameters.

    This will break most users who static import both `Truth.assertThat` and `Truth8.assertThat`. The fix is usually as simple as replacing every reference to `Truth8` with a reference to `Truth`. But we'll post some additional migration information as part of the release notes, as we've already done for [1.3.0](https://github.com/google/truth/releases/tag/v1.3.0) and [1.4.0](https://github.com/google/truth/releases/tag/v1.4.0).
    
    (The type parameters existed to avoid that static import conflict. However, the type parameters also _cause other static import conflicts_, so we don't want them in place in the long term.)
    
    This is one of the remaining loose ends of #746.
    
    RELNOTES=Removed temporary type parameters from `Truth.assertThat(Stream)` and `Truth.assertThat(Optional)`. This can create build errors, which you can fix by replacing all your references to `Truth8` with references to `Truth`.
    PiperOrigin-RevId: 604754613
    cpovirk authored and Google Java Core Libraries committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    45782bd View commit details
    Browse the repository at this point in the history