Skip to content

Commit 8eeb012

Browse files
committed
Fixed unchecked warning - BugBash
Signed-off-by: janaganh <[email protected]>
1 parent a3c348f commit 8eeb012

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class WorkflowValidatorImpl implements WorkflowValidator {
4545

4646
private static final Logger logger = LoggerFactory.getLogger(WorkflowValidatorImpl.class);
4747
private boolean schemaValidationEnabled = true;
48-
private List<ValidationError> validationErrors = new ArrayList();
48+
private List<ValidationError> validationErrors = new ArrayList<>();
4949
private Schema workflowSchema = WorkflowSchemaLoader.getWorkflowSchema();
5050
private String source;
5151
private Workflow workflow;
@@ -388,7 +388,7 @@ private void addValidationError(String message,
388388
private class Validation {
389389

390390
final Set<String> events = new HashSet<>();
391-
final Set<String> functions = new HashSet();
391+
final Set<String> functions = new HashSet<>();
392392
final Set<String> states = new HashSet<>();
393393
Integer endStates = 0;
394394

0 commit comments

Comments
 (0)