Ignore:
Timestamp:
2015-10-11T15:28:33+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #11957 - partial revert of r8851 - do not replace Stack by ArrayDeque because of different iteration behaviour + add unit test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/XmlObjectParser.java

    r8851 r8856  
    1010import java.lang.reflect.Method;
    1111import java.lang.reflect.Modifier;
    12 import java.util.ArrayDeque;
    13 import java.util.Deque;
    1412import java.util.HashMap;
    1513import java.util.Iterator;
     
    1816import java.util.Locale;
    1917import java.util.Map;
     18import java.util.Stack;
    2019
    2120import javax.xml.XMLConstants;
     
    6564
    6665    private class Parser extends DefaultHandler {
    67         private Deque<Object> current = new ArrayDeque<>();
     66        private Stack<Object> current = new Stack<>();
    6867        private StringBuilder characters = new StringBuilder(64);
    6968
Note: See TracChangeset for help on using the changeset viewer.