According to the javac documentation, -Xlint:none only disables warnings "not mandated by the Java Language Specification". It appears that warning you of the use of deprecated APIs is managed by the language spec.Your best option would be to fix the use of deprecated APIs. However, an option would be to add the @SupressWarnings("deprecation") annotation to the classes or methods that are using the deprecated APIs.参考吧
2. 请说出JDK版本,旧版本好象有BUG
参考:http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6394563
3. 这个倒是头次看到,查了下
参考:http://topic.csdn.net/u/20100408/09/a5044d5c-3c3b-40f6-9334-9876e7eb55bb.html
4.根据3,4就是无意义了,编译参数在compiler里选选就有了。
根据Javac的文档, -Xlint:none 只会禁止 “不符合Java语言规范的警告”. 意思就是说废用的API的警告是符合Java语言规范的。要解决要么你不要已经废用的API,要么在用到废用API的代码方法体或类上加上@SupressWarnings("deprecation")注解。
1.java都可以写网页游戏的,慢的说法似乎有些勉强,何况我2G内存够用吧。我刚才又在eclipse中跑起来几次,可是又有几次跑不起来。
对了,对于这种大型的项目,如何去看啊?我从main方法所在的类入手,可看起来很慢,文件太多了。