Fix #4864: Correct toString() output in ReflectionRecordDeclaration#4879
Conversation
| (ReflectionRecordDeclaration) typeSolver.solveType("box.Box"); | ||
|
|
||
| String result = decl.toString(); | ||
| System.out.println("toString() output = " + result); |
There was a problem hiding this comment.
This is not good practice.
There was a problem hiding this comment.
Thanks! I will remove the System.out.println() and keep only the assertion.
|
Please squash your commits for better readability. |
02810fb to
c73eab8
Compare
Done — squashed commits into one for better readability. |
|
Why do you close and reopen the PR? This generates alerts, which are annoying. |
|
Could this change inspire other similar changes (for example, in the ReflectionClassDeclaration class)? |
|
Sorry, I accidentally closed the PR — that was unintentional. |
|
Done — updated all classes in reflectionmodel with the same toString() style and pushed a separate commit |
|
Have you squashed your commits? |
|
Yes, I’ve squashed the commits. All other similar updates have been into the new commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4879 +/- ##
===============================================
+ Coverage 58.333% 58.341% +0.007%
- Complexity 2535 2538 +3
===============================================
Files 677 677
Lines 39041 39041
Branches 7089 7089
===============================================
+ Hits 22774 22777 +3
+ Misses 13368 13365 -3
Partials 2899 2899
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
|
Is the ticket finished for you? |
|
I just noticed that one of the checks failed, so I added a test for this issue. If all the tests pass this time, I’ll squash the commits and it’ll be finished. |
40bbf19 to
4a292c3
Compare
fix: correct toString() output in ReflectionRecordDeclaration and add corresponding test case refactor(reflectionmodel): use getClass().getSimpleName() in toString() methods test: add test for issue4864
ce2c57c to
1a4011b
Compare
|
I’ve finished the updates and squashed the commits for a clean history. |
|
Thank you for this contribution. |
Fixes
Fixes #4864
Test
testToStringShouldUseCorrectClassName()inReflectionRecordDeclarationTestDetails