为什么 Intellij 在我的一个 Java 类的类图标上显示十字 (x)?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11055016/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Why is Intellij showing a cross (x) over the class icon for one of my Java classes?
提问by vegemite4me
The icon that IntelliJ (v11.1) usually shows next to Java classes is a blue circle with a C. But for one of my classes this icon has a small "x" in the top left corner. This particular class is in a package with another class, which has just the usual C in a blue circle.
IntelliJ (v11.1) 通常在 Java 类旁边显示的图标是一个带 C 的蓝色圆圈。但是对于我的一个类,这个图标的左上角有一个小“x”。这个特定的类与另一个类在一个包中,它只有一个蓝色圆圈中的常用 C。
In case it matters, I'm using a Mac.
万一重要,我使用的是Mac。
The class in question is AlertsHandler.
有问题的类是AlertsHandler。
回答by CrazyCoder
This icon shows that the class is excluded from the compilation, it can be changed in Settings
(Preferences
on Mac) | Compiler
| Excludes
.
此图标表示该类已被排除在编译之外,可以在Settings
(Preferences
在 Mac 上) | 中更改。Compiler
| Excludes
.