我在哪里可以找到 java 中已弃用项目的替代品?
我需要找到 java 中已弃用项目的替代品。我在 javadoc 中找到了有关每个已弃用项目的一些描述。但这还不够。
更具体地说=>我需要编写一个java程序,它可以读取java文件,并且应该用适当的替换来替换给定java文件中使用的已弃用的项目(如果有)。
还有其他来源可以找到它吗?
或者
是否有任何第三方 API 可以替代已弃用的 itms?
或者
Eclipse 中是否有可用的选项来执行此操作? ->我的意思是,例如在 Eclipse 的问题控制台中,我们可以找到所使用的已弃用项目的警告。同样,eclipse 中是否有任何内容可以显示项目中已弃用项目的替换,
请在这方面帮助我。
提前致谢,
伊斯瓦尔
I need to find the replacement for the deprecated items in java. I found some description in javadoc about each and every deprecated items. But it's not sufficient.
To be more specific => I need to do a java program, which can read a java file and should replace the deprecated items used(if any) in that given java file with the appropriate replacement.
Is there any other source to find it?
OR
Is there any third party API's available to give the replacement for the deprecated itms?
OR
Is there any options available in eclipse to do this? -> I mean for example in the problems console of eclipse, we can able to find the warnings for the deprecated items used. Likewise, is there anything in eclipse which can show the replacement of the deprecated items in the project,
Please help me in this regard.
Thanks in advance,
Easwar
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
@Deprecated API(方法、类等)已被弃用,以通知您存在应使用的较新 API 来代替它。新的 API 到底是什么是不确定的(即不能通过 eclipse 或通过分析代码来推断)。知道应该使用什么来代替它的唯一方法是阅读文档。如果没有文件,除了联系知道的人之外,没有办法知道。
A @Deprecated API (method, class, whatever) is deprecated to notify you that a newer API exists that should be used instead of it. Exactly what the newer API is is not deterministic (i.e. is not something that can be inferred by eclipse or by analyzing the code). The only way to know what should be used instead of it is to read the documentation. If there is no documentation, there is no way of knowing apart from contacting someone who does know.