-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removed suspicious getClass() call on Class #15367
Conversation
Signed-off-by: Dmitry Kryukov <dk2k@ya.ru>
❌ Gradle check result for 34d23d1: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Is there a test covering this path? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #15367 +/- ##
============================================
- Coverage 71.93% 71.84% -0.09%
+ Complexity 63223 63209 -14
============================================
Files 5214 5214
Lines 295938 295938
Branches 42754 42754
============================================
- Hits 212876 212627 -249
- Misses 65601 65880 +279
+ Partials 17461 17431 -30 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reading the code seems like the .getClass() was intentional. I could be wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this suspicious?
The intention here is to display the fully qualified class name. Printing the instance toString()
may expose object internals to an exception handling path.
@dbwiddis
output: Which of the lines from this output do you expect to see as part of exception's message? |
The log entry says "streamable custom class XYZ already registered", we expect to see XYZ |
Removed suspicious getClass() call on Class