How to turn off Eclipse warning quot;The import is never usedquot;?(如何关闭 Eclipse 警告“从未使用过导入?)
问题描述
我在项目中有很多此类警告,我想将其关闭.我对删除这些导入不感兴趣,所以请不要告诉我该怎么做.
I have a lot of this warnings in project and I would like to turn it off. I'm not interested in removing those imports, so please don't tell me how to do it.
我使用的是 eclipse 3.4.2.
I'm using eclipse 3.4.2.
推荐答案
要更改整个工作区:
Window > Preferences > Java > Compiler > Errors/Warnings > Unused Import > Ignore.
Window > Preferences > Java > Compiler > Errors/Warnings > Unused Import > Ignore.
要覆盖单个项目的工作区设置:
To override workspace settings for a single project:
项目 > 属性 > Java 编译器 > 错误/警告 > 未使用的导入 > 忽略.
Project > Properties > Java Compiler > Errors/Warnings > Unused Import > Ignore.
这篇关于如何关闭 Eclipse 警告“从未使用过导入"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何关闭 Eclipse 警告“从未使用过导入"?
基础教程推荐
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- RabbitMQ:消息保持“未确认"; 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- 存储 20 位数字的数据类型 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- Struts2 URL 无法访问 2022-01-01
