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 警告“从未使用过导入"?
基础教程推荐
- Maven:无效的目标版本:10 2022-01-01
- doFilter()是在servlet的工作完成之前还是之后执行的? 2022-01-01
- JPA惰性列表上的流 2022-01-01
- 在springboot中如何给mybatis加拦截器 2023-04-29
- 将 Windows 证书导入 Java 2022-01-01
- 控制台应用程序中的 Java 键盘输入解析 2022-01-01
- 将 double 转换为 Int,向下舍入 2022-01-01
- 如何在相机中应用自定义滤镜 [Surfaceview 预览]. 2022-01-01
- 在java中使用xpath和selenium解析HTML表格数据 2022-01-01
- Java ECDSAwithSHA256 签名长度不一致 2022-01-01
