首页 > 代码库 > Android Lint检查

Android Lint检查

1.Implicitly using the default locale is a common source of bugs: Use toLowerCase(Locale) instead

  toLowerCase(Locale.getDefault())

  clean后就没有warninng了

2..Implicitly using the default locale is a common source of bugs: Use toUpperCase(Locale) instead

    增加Local:toUpperCase(Locale.getDefault());\

3.Replace "..." with ellipsis character (…, …) ?

   用 … 代替 ... ,注意 &#; 这三个符号都不能少 。

4.Type safety: Unchecked cast from Object to Map<String,List<EpisodePo>>
  未找到解决办法
  1:方法上添加@SuppressWarnings("unchecked")
  2:Window->Preferences->Java->Compiler->Errors/Warning->Generic types中Unchecked generic type operation设置为Ignore。

Android Lint检查