commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IMAGING-115) DhtSegment class contains mutable public arrays
Date Tue, 22 Oct 2013 17:44:44 GMT

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

Mime
View raw message