某些输入文件使用或覆盖已弃用的API [英] Some input files use or override a deprecated API
问题描述
我刚刚下载了新的LWUIT 1.5,当我编译项目时,我在输出中看到了以下几行:
I just downloaded the new LWUIT 1.5 and when I compiled my project then I saw in the output trace these lines:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
我使用Sun Java ME SDK 3.0
I use Sun Java ME SDK 3.0
那么如何进行-Xlint
重新编译?
So how to make the -Xlint
recompilation?
推荐答案
根据较旧的SO问题中的注释,"NetBeans中的-Xlint在项目属性下设置,运行或编译选项"-在此处查看详细信息:NetBeans中的编译问题
according to comments in older SO question, "-Xlint in NetBeans is set under project properties, run or compile options" - see details here: Compiling issue in NetBeans
在Netbeans论坛上还有一个主题.他们说,
There is also a thread at Netbeans forums. They say,
转到项目属性"的编译"部分.这是一个标记为报告不赞成使用的API的使用"的复选框.选中该选项将打开-Xlint.
Go to the Compiling section of the Project Properties. These is a check box labeled "Report use of deprecated API". Checking that will turn on -Xlint.
这篇关于某些输入文件使用或覆盖已弃用的API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!