Back to Intellij Community

RemoveUnnecessaryParentheses

plugins/kotlin/code-insight/descriptions/resources-en/inspectionDescriptions/RemoveUnnecessaryParentheses.html

2025.3-rc-2152 B
Original Source

Reports expressions containing redundant parentheses.

Example:

return (i as Int)

After the quick-fix is applied:

return i as Int