“不鼓励的参考”是什么在Java中的意思? [英] What does "discouraged reference" mean in Java?
本文介绍了“不鼓励的参考”是什么在Java中的意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
Eclipse具有不适用于下游插件的内部软件包。但是,默认情况下,这些软件包对于下游插件是可见的。
一个不鼓励的引用是您的代码中的一个Eclipse内部软件包的引用。
您可以在插件开发环境指南 - >工具 - >编辑器 - >插件清单编辑器 - >插件运行时 - >访问规则中找到更多信息。
I noticed this setting in Eclipse's compiler settings. How is this different than a "forbidden reference"?
解决方案
Eclipse has Internal packages that are not intended for use by downstream plug-ins. However, these packages are visible to downstream plug-ins by default.
A discouraged reference is a reference in your code to one of the Eclipse internal packages.
You can find more information in the Plug-in Development Environment Guide -> Tools -> Editors -> Plug-in manifest editor -> Plug-in run time -> Access Rules.
这篇关于“不鼓励的参考”是什么在Java中的意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文