android SharedPreferences null keys, values and sets<?> - corner cases

后端 未结 1 1747
故里飘歌
故里飘歌 2021-01-21 14:17

Been extensively testing the SharedPreferences framework. While most works as one would expect I run across some cases where I wonder what\'s the reasoning behind t

相关标签:
1条回答
  • 2021-01-21 15:04
    1. It's in the code

    2. It's me not understanding generics:

      You can easily put a String into a HashSet<Integer> by using the raw type HashSet

    3. Posted an issue here: http://code.google.com/p/android/issues/detail?id=63463 (after starting a discussion in google groups with the usual noop results). Actually as of 2014.01.07 the issue is marked Future Release :)

    Test project.

    0 讨论(0)
提交回复
热议问题