OSDN Git Service

XmlUtils#readThisMapXml should handle null keys.
authorNarayan Kamath <narayan@google.com>
Wed, 18 Dec 2013 15:19:17 +0000 (15:19 +0000)
committerNarayan Kamath <narayan@google.com>
Mon, 6 Jan 2014 11:18:21 +0000 (11:18 +0000)
commitf748257eee651b974e15274e03fe9843a8393073
treee6224a613d8612d148dd44e28af39d64731cf3a4
parentcccf2a333793badbcea9b04fe3f29447496a56d9
XmlUtils#readThisMapXml should handle null keys.

Both readThisValueXml & writeThisValueXml have been
implemented to handle values with "null" names.

Change readThisMapXml to allow such names as well, and
map them to the null key in the resulting HashMap.
readThisListXml and readThisSetXml already support
null names.

bug: https://code.google.com/p/android/issues/detail?id=63463

Change-Id: I1c93976656e45e7733113eb67d29b6bad5d25f1f
core/java/com/android/internal/util/XmlUtils.java
core/tests/coretests/src/com/android/internal/util/XmlUtilsTest.java [new file with mode: 0644]