apache / apache/eventmesh-dashboard
[Enhancement] Optimize `getClass().getSimpleName()` usage in unit test anonymous classes
- Dominant language
- Java
- Stars
- 26
- Forks
- 23
- Avg merge
- 6h 18m
- Merged PRs (30d)
- 3
Description
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/eventmesh/issues?q=is%3Aissue) and found no similar issues.
### Enhancement Request

In an anonymous class, the `getClass().getSimpleName()` method will return an empty string, causing the log to fail to record the class name.
### Describe the solution you'd like
Optimize logging methods.
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) *
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names no files or tests. Search the unit tests for getClass().getSimpleName() calls in anonymous classes, reproduce the empty-name logging case, and identify the affected logging methods; done means anonymous-class logging records a non-empty class name and the relevant tests pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100