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

Capacity is not used and memory waste in QuadTreeNode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • Storage
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: