Uploaded image for project: 'Spatial Information Systems'
  1. Spatial Information Systems
  2. SIS-39

Capacity is not used and memory waste in QuadTreeNode

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Storage
    • Labels:
      None

      Description

      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:

        public void addData(QuadTreeData data) {
          if (this.dataCount < this.capacity) {
            this.data[dataCount] = data;
            this.dataCount++;
          }
        }
      

        Attachments

          Activity

            People

            • Assignee:
              chrismattmann Chris A. Mattmann
              Reporter:
              peathal Peter Karich
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: