HDDS-6514. Cleanup constructors and builders in OM helpers#3244
HDDS-6514. Cleanup constructors and builders in OM helpers#3244kaijchen wants to merge 11 commits intoapache:masterfrom
Conversation
|
We could combine HDDS-6513 and this into one since they are doing the same cleanups to source files under the same directory. |
There are many classes with the same problem, inside om.helpers or outside. |
|
Oh if there are many(more than these 2) such problems and you've got a plan to fix them all, then we'd better have a base JIRA for "Avoid constructor for some submodule" and create sub-tasks under it, then we could know how many problems have fixed and how many left rather than randomly fix them one by one. |
Thanks for the advice. I have changed HDDS-6513 to track them. |
a98fa81 to
372eaa2
Compare
13e38f2 to
1989dac
Compare
I decided to group them to reduce the number of pull requests. |
|
Rebased to master to solve the merge conflicts. |
This reverts commit 77a6c47.
What changes were proposed in this pull request?
Use builder pattern to avoid constructor telescoping in OM helpers.
And reduce parameter numbers in constructors, thus removing the need of
@SuppressWarnings("checkstyle:ParameterNumber")What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-6514
How was this patch tested?
Unit test