[
https://issues.apache.org/jira/browse/HDDS-14104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chen-Jheng Sing reassigned HDDS-14104:
--------------------------------------
Assignee: Chen-Jheng Sing
> Refactor RequestContext creation
> --------------------------------
>
> Key: HDDS-14104
> URL: https://issues.apache.org/jira/browse/HDDS-14104
> Project: Apache Ozone
> Issue Type: Improvement
> Reporter: Attila Doroszlai
> Assignee: Chen-Jheng Sing
> Priority: Major
> Labels: GoodForNewContributors
>
> {{RequestContext}} has a Builder, but also:
> - multiple constructors, some with {{SuppressWarnings("parameternumber")}}
> - redundant {{getBuilder}} methods, which tests use as
> {{getBuilder(...).build()}}
> These defeat the purpose of the Builder, which is to avoid proliferation of
> constructor parameters and constructor variants.
> Changes in this task:
> - modify tests to use the Builder directly
> - add a test helper method which initializes the builder with test-specific
> default values to avoid duplication
> - delete {{getBuilder}} methods
> - replace existing constructors with one that takes a single {{Builder}}
> - make {{Builder()}} private
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]