Skip to content

Commit

Permalink
Document more about how and why to migrate off Truth8.
Browse files Browse the repository at this point in the history
This continues our work on #746.

RELNOTES=n/a
PiperOrigin-RevId: 607468197
  • Loading branch information
cpovirk authored and Google Java Core Libraries committed Feb 15, 2024
1 parent 1e9d4d8 commit a6d312e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/src/main/java/com/google/common/truth/Truth8.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@
* The obsolete entry point for assertions about Java 8 types.
*
* @deprecated Instead of this class's methods, use the identical methods declared in the main
* {@link Truth} class.
* {@link Truth} class. In most cases, you can <a
* href="https://github.com/google/truth/releases/tag/v1.4.0">migrate</a> your whole project
* mechanically: {@code git grep -l Truth8 | xargs perl -pi -e 's/\bTruth8\b/Truth/g;'}
* Migration is important <i>if</i> you static import {@code assertThat}: If you do not migrate,
* such static imports will become ambiguous in Truth 1.4.2, breaking your build.
*/
@Deprecated
// The methods here are no more dangerous that wherever the user got the (e.g.) Stream.
Expand Down

0 comments on commit a6d312e

Please sign in to comment.