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
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/src/main/java/com/google/common/truth/Truth.java
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public static TableSubject assertThat(@Nullable Table<?, ?, ?> actual) {
"Java7ApiChecker", // no more dangerous than wherever the user got the Optional
"NullableOptional", // Truth always accepts nulls, no matter the type
})
public static <T> OptionalSubject assertThat(@Nullable Optional<T> actual) {
public static OptionalSubject assertThat(@Nullable Optional<?> actual) {
return assert_().that(actual);
}

Expand Down Expand Up @@ -297,7 +297,7 @@ public static OptionalDoubleSubject assertThat(@Nullable OptionalDouble actual)
* @since 1.4.0 (present in {@link Truth8} since before 1.0)
*/
@SuppressWarnings("Java7ApiChecker") // no more dangerous than wherever the user got the Stream
public static <T extends @Nullable Object> StreamSubject assertThat(@Nullable Stream<T> actual) {
public static StreamSubject assertThat(@Nullable Stream<?> actual) {
return assert_().that(actual);
}

Expand Down