Incorrect 'contains' comparision

Description

In org.activiti.validation.validator.impl.OperationValidator.java there is an 'contains' method call where the types are not matching; see line 23:

if (bpmnModel.getMessages().contains(operation.getInMessageRef()))

The left side returns a collection of Message objects and the right side
returns a String.

I'm not sure exactly how this should be fixed.

Environment

None

Assignee

Tijs Rademakers

Reporter

David Malkovsky

Labels

None

Components

Fix versions

Priority

Major
Configure