joel-costigliola / assertj

AssertJ documentation
60 stars 30 forks source link

AbstractSoftAssertions.errorsCollected() modifies error list #73

Closed nebehr closed 7 years ago

nebehr commented 7 years ago

The code in the public method AbstractSoftAssertions.errorsCollected() (https://github.com/joel-costigliola/assertj-core/blob/master/src/main/java/org/assertj/core/api/AbstractSoftAssertions.java#L104) modifies error list by changing their messages, even though the list itself is immutable.