Code cleanup

- Inline variables
- Remove unused variables
- Remove redundant array creation
- Remove redundant `@SuppressWarnings`
- Remove unnecessary exceptions from throws list
- Remove redundant initializers
- Use List.subList().clear() where appropriate
- Use try-with-resources where needed
- Use pattern variables where appropriate
This commit is contained in:
Mahmoud Ben Hassine
2023-07-12 23:25:18 +02:00
parent 4763480c57
commit 52064c0541
103 changed files with 169 additions and 224 deletions

View File

@@ -115,8 +115,7 @@ public class AsyncItemProcessor<I, O> implements ItemProcessor<I, Future<O>>, In
if (context == null) {
return null;
}
StepExecution stepExecution = context.getStepExecution();
return stepExecution;
return context.getStepExecution();
}
}