1

枚举类为何报这个提示

 2 years ago
source link: https://www.v2ex.com/t/810039
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  程序员

枚举类为何报这个提示

  kikione · 12 小时 25 分钟前 · 278 次点击

java.net.URLDecoder 中的方法 decode(String encodeStr) 这个方法已经过时,应该使用双参数 decode(String source, String encode)。接口提供方既然明确是过时接口,那么有义务同时提供新的接口;作为调用方来说,有义务去考证过时方法的新实现是什么。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK