Remove unnecessary return statements

This commit is contained in:
Mahmoud Ben Hassine
2023-07-04 21:17:42 +02:00
parent 5c8cb7663f
commit b5e7269847
4 changed files with 2 additions and 7 deletions

View File

@@ -164,7 +164,6 @@ public class JobRegistryBackgroundJobRunner {
}
jobLoader = parentContext.getBean(names[0], JobLoader.class);
return;
}

View File

@@ -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;
}
};

View File

@@ -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;
}
}

View File

@@ -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;
}
}