Removed incorrect @Nullable annotations
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user