Menu

Commit [r8303]  Maximize  Restore  History

- bugfix in QuadTree: iterator return by values() ignored some entries that laid exactly on the extend of the QuadTree or outside. includes test cases.

- iterator return by values() now recognizes if modifications are made to the underlying data structure and throws a ConcurrentModificationException in that case. This prevents inconsistent iterators and is based on the failfast-iterators used in java.util-Collection-Classes. includes a test case.
- modified test case testSerialization not to do file i/o anymore to speed the test execution up a (likely non-measurable) little bit.

mrieser 2009-08-08

changed /matsim/trunk/src/org/matsim/core/utils/collections/QuadTree.java
changed /matsim/trunk/test/src/org/matsim/core/utils/collections/QuadTreeTest.java
/matsim/trunk/src/org/matsim/core/utils/collections/QuadTree.java Diff Switch to side-by-side view
Loading...
/matsim/trunk/test/src/org/matsim/core/utils/collections/QuadTreeTest.java Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.