Android ADT 21.0 warning: Implicitly using the default locale

后端 未结 6 1427
感情败类
感情败类 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:02

    You should use Locale.getDefault() especially if you cant be sure that your text will always be in english. Also lint errors like that one you are having usually disappear after you run lint again or clean your project.

提交回复
热议问题