Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
*
* @param <T> the type of the object being tested by this {@code ComparableSubject}
*/

// TODO(b/136040841): Consider further tightening this to the proper `extends Comparable<? super T>`
public class ComparableSubject<T extends Comparable<?>> extends Subject {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import static com.google.common.base.Preconditions.checkNotNull;


/**
* In a fluent assertion chain, exposes one or more "custom" {@code that} methods, which accept a
* value under test and return a {@link Subject}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
package com.google.common.truth;


/**
* Defines what to do when a check fails.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
// Some builder calls need to be separate, so let's keep them all separate.
@SuppressWarnings("BuilderCollapser")
// Can't be final since MultisetSubject and SortedSetSubject extend it

public class IterableSubject extends Subject {

private final @Nullable Iterable<?> actual;
Expand Down
1 change: 0 additions & 1 deletion core/src/main/java/com/google/common/truth/MathUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import static java.lang.Double.isFinite;
import static java.lang.Math.abs;


/** Math utilities to be shared by numeric subjects. */
final class MathUtil {
private MathUtil() {}
Expand Down
1 change: 0 additions & 1 deletion core/src/main/java/com/google/common/truth/Ordered.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
package com.google.common.truth;


/**
* Returned by calls like {@link IterableSubject#containsExactly}, {@code Ordered} lets the caller
* additionally check that the expected elements were present in the order they were passed to the
Expand Down
1 change: 1 addition & 0 deletions core/src/main/java/com/google/common/truth/TruthJUnit.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
* }
* }</pre>
*/

@com.google.common.annotations.GwtIncompatible("JUnit4")
public final class TruthJUnit {
@SuppressWarnings("ConstantCaseForConstants") // Despite the "Builder" name, it's not mutable.
Expand Down
Loading