Inspectopedia
 
2024.3

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

Warning
Reliability
New
Last modified: 03 December 2024

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.