Skip to content

Commit 3406074

Browse files
committed
Document more about how and why to migrate off Truth8.
This continues our work on #746. RELNOTES=n/a PiperOrigin-RevId: 607468197
1 parent 2be0061 commit 3406074

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

core/src/main/java/com/google/common/truth/Truth8.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@
3333
* The obsolete entry point for assertions about Java 8 types.
3434
*
3535
* @deprecated Instead of this class's methods, use the identical methods declared in the main
36-
* {@link Truth} class.
36+
* {@link Truth} class. In most cases, you can <a
37+
* href="https://github.com/google/truth/releases/tag/v1.4.0">migrate</a> your whole project
38+
* mechanically: {@code git grep -l Truth8 | xargs perl -pi -e 's/\bTruth8\b/Truth/g;'}
39+
* Migration is important <i>if</i> you static import {@code assertThat}: If you do not migrate,
40+
* such static imports will become ambiguous in Truth 1.4.2, breaking your build.
3741
*/
3842
@Deprecated
3943
// The methods here are no more dangerous that wherever the user got the (e.g.) Stream.

0 commit comments

Comments
 (0)