Inspectopedia Help

Use 'PsiType#equals(Object)' with primitive types

Reports comparing PsiPrimitiveType instances using ==.

Primitive types should be compared with equals as Java 8 type annotations are also applicable for them.

Replace with equals() call.

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Plugin DevKit, 233.SNAPSHOT

Last modified: 13 July 2023