FelipeM525 opened a new pull request, #8801:
URL: https://github.com/apache/cloudstack/pull/8801

   ### Description
   
   This PR aims to refactor the class `KubernetesClusterModifierActionWorker`. 
The main goal is to improve the adherence to object-oriented programming 
principles, specifically encapsulation. In this class, there were a couple of 
methods that were using reflection, such as `Field.setAccessible()`, to modify 
object fields directly, which can be seen as a violation of encapsulation, one 
of the fundamental principles of object-oriented programming. This issue was 
fixed by creating setters in the respective classes belonging to the objects 
where this behavior occurred.
   
   ### Types of changes
   
   - [ ] Breaking change (fix or feature that would cause existing 
functionality to change)
   - [ ] New feature (non-breaking change which adds functionality)
   - [ ] Bug fix (non-breaking change which fixes an issue)
   - [ ] Enhancement (improves an existing feature and functionality)
   - [x] Cleanup (Code refactoring and cleanup, that may add test cases)
   - [ ] build/CI
   
   #### Feature/Enhancement Scale
   
   - [ ] Major
   - [x] Minor
   
   ### How Has This Been Tested?
   I ran all the tests related to the class 
`KubernetesClusterModifierActionWorker` and certified none of them were broken.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to