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 addSuppressed in AbstractExecutionThreadService, and otherwise update/clarify code pinned to "Java 7" / old versions of Android. #1352

Merged
merged 1 commit into from
Oct 17, 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
12 changes: 4 additions & 8 deletions core/src/main/java/com/google/common/truth/ExpectFailure.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,8 @@ public void evaluate() throws Throwable {
* A "functional interface" for {@link #expectFailure expectFailure()} to invoke and capture
* failures.
*
* <p>Java 8+ users should pass a lambda to {@code .expectFailure()} rather than directly
* implement this interface. Java 7+ users can define an {@code @Rule ExpectFailure} instance
* instead, however if you prefer the {@code .expectFailure()} pattern you can use this interface
* to pass in an anonymous class.
* <p>Users should pass a lambda to {@code .expectFailure()} rather than directly implement this
* interface.
*/
public interface StandardSubjectBuilderCallback {
void invokeAssertion(StandardSubjectBuilder whenTesting);
Expand All @@ -221,10 +219,8 @@ public interface StandardSubjectBuilderCallback {
* A "functional interface" for {@link #expectFailureAbout expectFailureAbout()} to invoke and
* capture failures.
*
* <p>Java 8+ users should pass a lambda to {@code .expectFailureAbout()} rather than directly
* implement this interface. Java 7+ users can define an {@code @Rule ExpectFailure} instance
* instead, however if you prefer the {@code .expectFailureAbout()} pattern you can use this
* interface to pass in an anonymous class.
* <p>Users should pass a lambda to {@code .expectFailureAbout()} rather than directly implement
* this interface.
*/
public interface SimpleSubjectBuilderCallback<S extends Subject, A> {
void invokeAssertion(SimpleSubjectBuilder<S, A> whenTesting);
Expand Down