Android ADT 21.0 warning: Implicitly using the default locale

后端 未结 6 1429
感情败类
感情败类 2020-12-29 19:38

I\'ve updated ADT to v. 21 and new warning appeared in this code:

if (e.getMessage().toLowerCase().contains(\"blabla\"))

Implicitly using the default locale         


        
6条回答
  •  遥遥无期
    2020-12-29 20:03

    Cleaning the project didn't work for me, so I added the default locale on my code:

    String.format(Locale.getDefault(), "firstname: %s, lastname: %s", firstName, lastName));

    Depending on your project, you might want to take a look at the Locale explanation.

提交回复
热议问题