File tree 2 files changed +5
-4
lines changed
io.sloeber.autoBuild/src/io/sloeber/autoBuild/helpers/api
io.sloeber.core/src/io/sloeber/core/api
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -20,15 +20,15 @@ public class KeyValueTree {
20
20
21
21
private String myValue ;
22
22
private String myKey ;
23
- private Map <String , KeyValueTree > myChildren ;
23
+ private LinkedHashMap <String , KeyValueTree > myChildren = null ;
24
24
private KeyValueTree myParent ;
25
25
26
26
public static KeyValueTree createRoot () {
27
27
return new KeyValueTree ((String )null ,(String ) null );
28
28
}
29
29
30
30
private KeyValueTree (String newKey , String newValue ) {
31
- myChildren = new TreeMap <>();
31
+ myChildren = new LinkedHashMap <>();
32
32
myKey = newKey ;
33
33
myValue = newValue ;
34
34
myParent = null ;
@@ -45,7 +45,7 @@ public KeyValueTree(KeyValueTree source) {
45
45
}
46
46
47
47
private KeyValueTree (KeyValueTree source , KeyValueTree parent ) {
48
- myChildren = new TreeMap <>();
48
+ myChildren = new LinkedHashMap <>();
49
49
myKey = source .myKey ;
50
50
myValue = source .myValue ;
51
51
myParent = parent ;
Original file line number Diff line number Diff line change 10
10
import java .util .ArrayList ;
11
11
import java .util .Collections ;
12
12
import java .util .HashMap ;
13
+ import java .util .HashSet ;
13
14
import java .util .LinkedHashMap ;
14
15
import java .util .LinkedHashSet ;
15
16
import java .util .List ;
@@ -359,7 +360,7 @@ private void setDefaultOptions() {
359
360
360
361
private void removeInvalidMenuIDs () {
361
362
Set <String > allMenuIDs = this .mySloeberBoardTxtFile .getMenus ().keySet ();
362
- Set <String > optionKey =myOptions .keySet ();
363
+ Set <String > optionKey =new HashSet <>( myOptions .keySet () );
363
364
364
365
for ( String curOptionKey : optionKey ) {
365
366
if (!allMenuIDs .contains (curOptionKey )) {
You can’t perform that action at this time.
0 commit comments