Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
8de910ee
Commit
8de910ee
authored
Sep 03, 2023
by
Evan W. Patton
Committed by
David Young-Jae Kim
Oct 11, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix alist to dict bug with FString keys
Change-Id: I2b78449d83752967392b81686edc9d108b9cf86a
parent
e3f3cfd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
appinventor/components/src/com/google/appinventor/components/runtime/util/YailDictionary.java
...e/appinventor/components/runtime/util/YailDictionary.java
+7
-3
No files found.
appinventor/components/src/com/google/appinventor/components/runtime/util/YailDictionary.java
View file @
8de910ee
...
...
@@ -47,8 +47,12 @@ public class YailDictionary extends LinkedHashMap<Object, Object>
super
();
}
@SuppressWarnings
(
"UseBulkOperation"
)
// Use of put handles type casting
public
YailDictionary
(
Map
<
Object
,
Object
>
prevMap
)
{
super
(
prevMap
);
super
();
for
(
Map
.
Entry
<
Object
,
Object
>
entry
:
prevMap
.
entrySet
())
{
put
(
entry
.
getKey
(),
entry
.
getValue
());
}
}
/**
...
...
@@ -148,7 +152,7 @@ public class YailDictionary extends LinkedHashMap<Object, Object>
@SuppressWarnings
(
"WeakerAccess"
)
// Called from runtime.scm
public
static
YailDictionary
alistToDict
(
YailList
alist
)
{
LinkedHashMap
<
Object
,
Object
>
map
=
new
LinkedHashMap
<>
();
YailDictionary
map
=
new
YailDictionary
();
for
(
Object
o
:
((
LList
)
alist
.
getCdr
()))
{
YailList
currentPair
=
(
YailList
)
o
;
...
...
@@ -167,7 +171,7 @@ public class YailDictionary extends LinkedHashMap<Object, Object>
}
}
return
new
YailDictionary
(
map
)
;
return
map
;
}
private
static
YailList
checkList
(
YailList
list
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment