Remove unnecessary return statements
This commit is contained in:
@@ -164,7 +164,6 @@ public class JobRegistryBackgroundJobRunner {
|
||||
}
|
||||
|
||||
jobLoader = parentContext.getBean(names[0], JobLoader.class);
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -106,7 +106,6 @@ class TaskExecutorJobLauncherTests {
|
||||
@Override
|
||||
public void execute(JobExecution execution) {
|
||||
execution.setExitStatus(ExitStatus.COMPLETED);
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -133,7 +132,6 @@ class TaskExecutorJobLauncherTests {
|
||||
@Override
|
||||
public void execute(JobExecution execution) {
|
||||
execution.setExitStatus(ExitStatus.COMPLETED);
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006-2022 the original author or authors.
|
||||
* Copyright 2006-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -121,7 +121,6 @@ class SpringValidatorTests {
|
||||
if (value.equals(REJECT_MULTI_VALUE)) {
|
||||
errors.rejectValue("foo", "bad.value");
|
||||
errors.rejectValue("bar", "bad.value");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006-2022 the original author or authors.
|
||||
* Copyright 2006-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -136,7 +136,6 @@ class MessagingGatewayIntegrationTests {
|
||||
@ServiceActivator
|
||||
public void service(String input) {
|
||||
count++;
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user