What does strikethrough mean in Netbeans?

时间秒杀一切 提交于 2020-01-03 07:01:08

问题


What does it mean when things are written in strikethrough in Netbeans, like getObject in the example below?

Version: Netbeans 6.8


回答1:


The method has been deprecated (i.e. replaced by a newer method, which you should probably use instead).

In other words, for some backward compatibility, the method you're calling is still in the API, but has been replaced by newer code/methods. Often this happens when an API is redesigned or updated, especially when a given API update changes its fundamental approach to a problem. When that happens, the old way of doing something will be deprecated, and you are therefore encouraged (though not required, so long as your code compiles and runs) to use the new stuff.



来源:https://stackoverflow.com/questions/7486092/what-does-strikethrough-mean-in-netbeans

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!