mirror of https://github.com/apache/cloudstack.git
Refactor: Modularize ApiResponseHelper#createUsageResponse
Fixes #11635 - Extracted the 500+ line switch/if-else block into a main dispatcher method `populateUsageTypeSpecificDetails`. - Created 18 individual private helper methods for each specific `UsageType` to improve maintainability and readability. - Introduced a `UsageResourceDetails` container class to safely manage and return `resourceId` and `resourceType` state for tag lookups. - Verified zero business logic changes; strictly structural refactoring.
This commit is contained in:
parent
82986f6cff
commit
61cb4ea066