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

Sebb commented on IMAGING-115:
------------------------------

In which case use a getter that does not copy.
At least it would be possible to have more control over thread-safety, and it 
would be possible to add debug tracing to accesses etc.

A public mutable field is bad.

> DhtSegment class contains mutable public arrays
> -----------------------------------------------
>
>                 Key: IMAGING-115
>                 URL: https://issues.apache.org/jira/browse/IMAGING-115
>             Project: Commons Imaging
>          Issue Type: Bug
>            Reporter: Sebb
>
> Mutable public arrays are very bad for thread-safety and maintainability.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to