You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2025/11/20 06:46:00 UTC

[jira] [Commented] (HDDS-10335) Make OmKeyArgs immutable

    [ https://issues.apache.org/jira/browse/HDDS-10335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18039548#comment-18039548 ] 

Attila Doroszlai commented on HDDS-10335:
-----------------------------------------

[~echonesis], can I pick this up?

> Make OmKeyArgs immutable
> ------------------------
>
>                 Key: HDDS-10335
>                 URL: https://issues.apache.org/jira/browse/HDDS-10335
>             Project: Apache Ozone
>          Issue Type: Sub-task
>            Reporter: Attila Doroszlai
>            Assignee: Chia-Chuan Ho
>            Priority: Major
>
> {code}
> M V EI: org.apache.hadoop.ozone.om.helpers.OmKeyArgs.getAcls() may expose internal representation by returning OmKeyArgs.acls  At OmKeyArgs.java:[line 100]
> M V EI: org.apache.hadoop.ozone.om.helpers.OmKeyArgs.getLocationInfoList() may expose internal representation by returning OmKeyArgs.locationInfoList  At OmKeyArgs.java:[line 136]
> M V EI: org.apache.hadoop.ozone.om.helpers.OmKeyArgs.getMetadata() may expose internal representation by returning OmKeyArgs.metadata  At OmKeyArgs.java:[line 124]
> M V EI2: org.apache.hadoop.ozone.om.helpers.OmKeyArgs.setLocationInfoList(List) may expose internal representation by storing an externally mutable object into OmKeyArgs.locationInfoList  At OmKeyArgs.java:[line 132]
> M V EI2: org.apache.hadoop.ozone.om.helpers.OmKeyArgs.setMetadata(Map) may expose internal representation by storing an externally mutable object into OmKeyArgs.metadata  At OmKeyArgs.java:[line 128]
> M V EI2: org.apache.hadoop.ozone.om.helpers.OmKeyArgs$Builder.setAcls(List) may expose internal representation by storing an externally mutable object into OmKeyArgs$Builder.acls  At OmKeyArgs.java:[line 266]
> M V EI2: org.apache.hadoop.ozone.om.helpers.OmKeyArgs$Builder.setLocationInfoList(List) may expose internal representation by storing an externally mutable object into OmKeyArgs$Builder.locationInfoList  At OmKeyArgs.java:[line 261]
> {code}



--
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