Skip to content

Conversation

@copybara-service
Copy link

Prepare for changes in how Truth prints class names.

Truth will soon:

  • print only the simple name for some well-known classes (e.g., print "NullPointerException" instead of "java.lang.NullPointerException")
  • print the canonical name where available instead of the binary name (e.g., print "com.google.Foo.BarException" instead of "com.google.Foo$BarException"

This CL updates callers to accept both versions.

RELNOTES=n/a

Truth will soon:
- print only the simple name for some well-known classes (e.g., print "NullPointerException" instead of "java.lang.NullPointerException")
- print the canonical name where available instead of the binary name (e.g., print "com.google.Foo.BarException" instead of "com.google.Foo$BarException"

This CL updates callers to accept both versions.

RELNOTES=n/a
PiperOrigin-RevId: 775721999
@copybara-service copybara-service bot merged commit 2a1d0fb into master Jun 25, 2025
@copybara-service copybara-service bot deleted the test_775380536 branch June 25, 2025 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant