删除线在Netbeans中是什么意思? [英] What does strikethrough mean in Netbeans?

查看:95
本文介绍了删除线在Netbeans中是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Netbeans中以 strikethrough 编写内容(例如下面的示例中的getObject)意味着什么?

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

版本:Netbeans 6.8

Version: Netbeans 6.8

推荐答案

该方法已被弃用(即,您应使用较新的方法代替).

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

换句话说,为了实现向后兼容性,您正在调用的方法仍在API中,但已被较新的代码/方法所取代.通常在重新设计或更新API时会发生这种情况,尤其是当给定的API更新更改其解决问题的基本方法时.发生这种情况时,将不赞成使用旧的处理方式,因此鼓励您(尽管不是必需的,只要您的代码可以编译并运行)就可以使用新的处理方式.

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.

这篇关于删除线在Netbeans中是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆