Why does Android Lint warn about String.format using default locale when explicitly using Locale.US?

后端 未结 4 1196
感动是毒
感动是毒 2021-02-03 16:54

I originally called String.format this way:

return String.format(\"%s %f %f\", anotherString, doubleA, doubleB);

Which made Androi

4条回答
  •  迷失自我
    2021-02-03 17:24

    Cleaning and rebuilding the project should work.

    BTW, you may want to use Locale.getDefault() to "take care" of texts not written in english.

提交回复
热议问题