Skip to content

Commit

Permalink
Preserve order of schema enumerated values
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeEdgar committed May 8, 2020
1 parent 2e6ed3d commit 862d0e7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Objects;
Expand Down Expand Up @@ -517,7 +518,7 @@ ElementType readSimpleType(XMLStreamReader reader) throws XMLStreamException {
}

Set<String> readEnumerationValues(XMLStreamReader reader) throws XMLStreamException {
Set<String> values = new HashSet<>();
Set<String> values = new LinkedHashSet<>();
QName element;
boolean enumerationEnd = false;

Expand Down

0 comments on commit 862d0e7

Please sign in to comment.