You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by "Martin Desruisseaux (JIRA)" <ji...@apache.org> on 2014/04/01 05:52:17 UTC

[jira] [Updated] (SIS-39) Capacity is not used and memory waste in QuadTreeNode

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

Martin Desruisseaux updated SIS-39:
-----------------------------------

    Fix Version/s:     (was: 0.4)
                   0.5

> Capacity is not used and memory waste in QuadTreeNode
> -----------------------------------------------------
>
>                 Key: SIS-39
>                 URL: https://issues.apache.org/jira/browse/SIS-39
>             Project: Spatial Information Systems
>          Issue Type: Bug
>          Components: Storage
>            Reporter: Peter Karich
>            Assignee: Chris A. Mattmann
>             Fix For: 0.5
>
>
> Either 'capacity' should be properly used. Or null checks are necessary in all places where the raw 'data' array is used. Also what happens if the data array is full? addData should at least throw an exception then:
> {code}
>   public void addData(QuadTreeData data) {
>     if (this.dataCount < this.capacity) {
>       this.data[dataCount] = data;
>       this.dataCount++;
>     }
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)