Remove temporary type parameters. #1239
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Remove temporary type parameters.
This will break most users who static import both
Truth.assertThat
andTruth8.assertThat
. The fix is usually as simple as replacing every reference toTruth8
with a reference toTruth
. 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)
andTruth.assertThat(Optional)
. This can create build errors, which you can fix by replacing all your references toTruth8
with references toTruth
.