Le 2024-09-23 à 12 h 32, Martin Desruisseaux a écrit :
Would it be okay if I modify the implementation with the following goals?

  * All setter methods make a defensive copy of the given collection,
    preserving Set order.
  * All getter methods returns an unmodifiable (but not necessarily
    immutable) collection.
  * The collections of properties that do not have an addFoo(...)
    method are immutable.
  * The clone method copies all non-immutable collections, and only them.
  * MavenProject(MavenProject) constructor is either deprecated, or
    modified for assigning fields directly without invoking setter
    methods (for avoiding the "this-escaped" compiler warning).

I propose to add "all getter methods return an empty collection instead of null".

    Martin

Reply via email to