首页 > 移动平台 > 详细

Android Lint检查

时间:2015-01-27 00:24:10      阅读:393      评论:0      收藏:0      [点我收藏+]

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检查

原文:http://www.cnblogs.com/liyuejiao/p/4251643.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!