[ 
https://issues.apache.org/jira/browse/HDDS-8648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Varsha Ravi reassigned HDDS-8648:
---------------------------------

    Assignee: Varsha Ravi

> Improve OmKeyInfo.Builder usage
> -------------------------------
>
>                 Key: HDDS-8648
>                 URL: https://issues.apache.org/jira/browse/HDDS-8648
>             Project: Apache Ozone
>          Issue Type: Sub-task
>            Reporter: Wei-Chiu Chuang
>            Assignee: Varsha Ravi
>            Priority: Trivial
>
> OMFileRequest.getOmKeyInfo() and getDirectoryInfo() are not written in a good 
> style.
> [https://github.com/apache/ozone/blob/bd900ae9db8abf819b28a29551cff87259700afc/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/file/OMFileRequest.java#L714-L730]
>  
> It should be written in the style of:
> {code:java}
>     OmKeyInfo.Builder builder = new OmKeyInfo.Builder();
>     builder.setParentObjectID(dirInfo.getParentObjectID())
>            .setKeyName(keyName)
>            .setAcls(dirInfo.getAcls())
> ....{code}
>  
> [~targetoee]  [~Aaron6112080] if you are interested in picking this up.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to