Back to Intellij Community

PropertyValueSetToItself

java/java-impl/resources/inspectionDescriptions/PropertyValueSetToItself.html

2025.3-rc-2197 B
Original Source

Reports calls of setter methods with the same object getter as a value. Usually, this code does nothing and probably was not intended.

For example:

bean.setPayerId(bean.getPayerId());