Removed incorrect @Nullable annotations

This commit is contained in:
Michael Minella
2018-07-25 10:53:37 -05:00
parent 148a93e7b4
commit 3a2fc7d2ee
2 changed files with 2 additions and 3 deletions

View File

@@ -25,7 +25,6 @@ import org.springframework.batch.core.configuration.DuplicateJobException;
import org.springframework.batch.core.configuration.JobFactory;
import org.springframework.batch.core.configuration.JobRegistry;
import org.springframework.batch.core.launch.NoSuchJobException;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
/**
@@ -62,7 +61,7 @@ public class MapJobRegistry implements JobRegistry {
}
@Override
public Job getJob(@Nullable String name) throws NoSuchJobException {
public Job getJob(String name) throws NoSuchJobException {
JobFactory factory = map.get(name);
if (factory == null) {
throw new NoSuchJobException("No job configuration with the name [" + name + "] was registered");

View File

@@ -243,7 +243,7 @@ public class JdbcJobExecutionDao extends AbstractJdbcBatchMetadataDao implements
}
@Override
public JobExecution getLastJobExecution(@Nullable JobInstance jobInstance) {
public JobExecution getLastJobExecution(JobInstance jobInstance) {
Long id = jobInstance.getId();