You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Chen-Jheng Sing (Jira)" <ji...@apache.org> on 2025/12/09 05:46:00 UTC
[jira] [Assigned] (HDDS-14104) Refactor RequestContext creation
[ 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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org