Skip to content

clone() method is on wrong interface #1391

@gertjanschouten

Description

@gertjanschouten

The Trigger interface extends Cloneable. However, the clone() method is specified on the MutableTrigger interface. This can sometimes lead to issues with mocking libraries such as mockk.

It would be better if the clone() method would be defined on Trigger, because that's the interface that extends Cloneable. Alternatively, the MutableTrigger interface should be the one extending Cloneable, instead of the Trigger interface. In any case, the clone() method should be on the interface that extends Cloneable, not on a subinterface.

Metadata

Metadata

Assignees

No one assigned

    Labels

    is:enhancementEnhancement to an existing feature

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions