Skip to content

Former proxied methods in AbstractIterableAssert are final. Is this by Design? #4303

Description

@mattbertolini

I noticed in this commit the protected xxxForProxy methods were removed as they don't seem to be needed anymore in future versions of AssertJ. For example the AbstractIterableAssert.contains() method is public final and delegated to the protected containsForProxy() method. This worked great as I could override the protected method to add functionality in assertj-eclipse-collections. Now that the protected methods are removed, the public methods have remained public final so I can't override them. Is that by design? I've been using overriding of these methods to build out eclipse collection support to keep very close compatibility with the core assertion lib. It's no problem if it is by design but I wanted to raise this in case it was not intentional. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions