警告而已。有些方法
1 已经过时,有更好的方法可以代替,比如 new java.util.Date().getYear(); => cal.get(Calendar.YEAR);
2 发现过问题,且无法完全修补,所以使用了新的方法。 比如 URLEncoder.encode(String) => URLEncoder.encode(String,String);
建议你还是看一下新的方法。
xxx.java: Recompile with -Xlint:deprecation for details
最新推荐文章于 2023-09-23 19:41:57 发布