Skip to content

Prepare for changes in how Truth prints class names.#1906

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_775380536
Jun 25, 2025
Merged

Prepare for changes in how Truth prints class names.#1906
copybara-service[bot] merged 1 commit into
masterfrom
test_775380536

Conversation

@copybara-service

Copy link
Copy Markdown

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