为什么 Intellij 在我的一个 Java 类的类图标上显示十字 (x)? [英] Why is Intellij showing a cross (x) over the class icon for one of my Java classes?
本文介绍了为什么 Intellij 在我的一个 Java 类的类图标上显示十字 (x)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
IntelliJ (v11.1) 通常在 Java 类旁边显示的图标是一个带 C 的蓝色圆圈.但是对于我的一个类,这个图标的左上角有一个小x".这个特定的类与另一个类在一个包中,另一个类只有一个蓝色圆圈中的常用 C.
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.
以防万一,我使用的是 Mac.
In case it matters, I'm using a Mac.
有问题的类是AlertsHandler.
推荐答案
这个图标表示类被排除在编译之外,可以在设置
中更改(Preferences
在 Mac) |编译器
|排除
.
This icon shows that the class is excluded from the compilation, it can be changed in Settings
(Preferences
on Mac) | Compiler
| Excludes
.
这篇关于为什么 Intellij 在我的一个 Java 类的类图标上显示十字 (x)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文