Skip to content

Commit 271cc0b

Browse files
committed
Change WorkflowValidatorImpl to match Java 8 API
Signed-off-by: Ricardo Zanini <[email protected]>
1 parent b4a187a commit 271cc0b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

validation/src/main/java/io/serverlessworkflow/validation/WorkflowValidatorImpl.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,12 @@ private boolean haveEventsDefinition(String eventName, List<EventDefinition> eve
359359
}
360360

361361
private static final Set<String> skipMessages =
362-
Set.of("$.start: string found, object expected", "$.functions: array found, object expected");
362+
new HashSet<String>() {
363+
{
364+
add("$.start: string found, object expected");
365+
add("$.functions: array found, object expected");
366+
}
367+
};
363368

364369
private void addValidationError(String message, String type) {
365370
if (skipMessages.contains(message)) {

0 commit comments

Comments
 (0)