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

Conversation

copybara-service[bot]
Copy link
Contributor

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 and 1.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.

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
@copybara-service copybara-service bot merged commit 45782bd into master Feb 6, 2024
@copybara-service copybara-service bot deleted the test_602078126 branch February 6, 2024 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant