• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

aspectran / aspectran / #4673

20 Oct 2025 03:26AM UTC coverage: 36.337% (-0.002%) from 36.339%
#4673

push

github

topframe
Refactor: Improve bean scope management and destruction logic

Removed the unused `Activity` parameter from the `Scope.putBeanInstance` method. This parameter was unnecessary as the current architecture does not support custom scopes that would require it, and the lifecycle of existing scopes is managed without it. This change simplifies the API.

Improved the readability of the `AbstractScope.destroy` method by:
- Renaming variables for better clarity (`targets` -> `beanRulesToDestroy`, `leftBehinds` -> `lazyDestroyBeans`).
- Adding comments to explain the two-step destruction process for non-lazy and lazy-destroy beans.

6 of 8 new or added lines in 3 files covered. (75.0%)

15060 of 41445 relevant lines covered (36.34%)

0.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/core/src/main/java/com/aspectran/core/component/bean/scope/SessionScope.java


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc