Commit 271128e
committed
ScriptLanguageIndex: use an ordered collection
The HashSet is not ordered, so iterating over it returns the
ScriptLanguages in a random order. But we want them in priority order,
which is the order they are added to the collection.
This change arguably breaks backwards compatibility, but in 99% of the
cases the API calls in practice will be the same (e.g., contains), so
I'm going to fudge this one.1 parent b9ec17e commit 271128e
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | | - | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments