Inspectopedia Help

Using new Color(a,a,a)

Reports usages of java.awt.Color to create gray colors.

The Convert to 'Gray' quick fix replaces it using com.intellij.ui.Gray constants instead.

Examples:

// bad: Color gray = new Color(37, 37, 37); // good: Color gray = Gray._37;

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Plugin DevKit, 233.SNAPSHOT

Last modified: 13 July 2023