IntelliJ IDEA 2020.3 Help

Generify dialog

Refactor | Generify

Item Description
Drop obsolete casts If this option is checked, IntelliJ IDEA analyzes whether the parameter cast cases are changed by refactoring. If the resulting parameter type is similar to the obsolete one, the cast statement is removed.
Leave Object-parameterized types raw Check this option to make objects, that have java.lang.Object as a parameter, raw.
Perform exhaustive search Check this option to perform search in all nodes.
Generify Objects Check this option to transform the java.lang.Object objects into the type they are actually used for.
Produce wildcard types Check this option to produce wildcard types where possible (expressions like List<? extends String>).
Preserve raw arrays If this checkbox is selected, the arrays are not changed to the arrays with parameterized types. Otherwise, the arrays will be transformed to parameterized type.

Clearing this checkbox can be risky and result in uncompilable code.

Last modified: 08 May 2020