This repository was archived by the owner on Sep 21, 2022. It is now read-only.
This repository was archived by the owner on Sep 21, 2022. It is now read-only.
Improve collection-setter-injector plugin to eagerly initialize collection properties #13
Open
Description
If the List implementation is the default java.util.ArrayList, it will be lazily
initialized.
This can cause a problem when using the EqualsBuilder.reflectionEquals(obj, obj)
method, as implemented by commons-lang-plugin, if the expected object holds a
null for a collection property while the actual object holds an empty ArrayList
simply because the getter method has been called, which has a side effect.
Note that the lazy initialization is implemented for performance reason.
Environment
Operating System: All
Platform: All
Affected Versions
[current]