Skip to content
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
9 changes: 8 additions & 1 deletion core/src/main/java/com/google/common/truth/Subject.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,14 @@ public void isNull() {
standardIsEqualTo(null);
}

/** Checks that the value under test is not null. */
/**
* Checks that the value under test is not null.
*
* <p>Kotlin users: A call to {@code assertThat(foo).isNotNull()} does not perform a smart cast on
* {@code foo}. If you require a smart cast, consider using {@code foo!!} or {@code
* assertNotNull(foo)} instead. The tradeoffs are that those will look different than any
* surrounding Truth assertions and that they will produce somewhat worse failure messages.
*/
public void isNotNull() {
standardIsNotEqualTo(null);
}
Expand Down
Loading