Skip to content

Commit b5e7269

Browse files
committed
Remove unnecessary return statements
1 parent 5c8cb76 commit b5e7269

File tree

4 files changed

+2
-7
lines changed

4 files changed

+2
-7
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/launch/support/JobRegistryBackgroundJobRunner.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ private void maybeCreateJobLoader() {
164164
}
165165

166166
jobLoader = parentContext.getBean(names[0], JobLoader.class);
167-
return;
168167

169168
}
170169

spring-batch-core/src/test/java/org/springframework/batch/core/launch/TaskExecutorJobLauncherTests.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ public boolean isRestartable() {
106106
@Override
107107
public void execute(JobExecution execution) {
108108
execution.setExitStatus(ExitStatus.COMPLETED);
109-
return;
110109
}
111110
};
112111

@@ -133,7 +132,6 @@ public boolean isRestartable() {
133132
@Override
134133
public void execute(JobExecution execution) {
135134
execution.setExitStatus(ExitStatus.COMPLETED);
136-
return;
137135
}
138136
};
139137

spring-batch-infrastructure/src/test/java/org/springframework/batch/item/validator/SpringValidatorTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -121,7 +121,6 @@ public void validate(Object value, Errors errors) {
121121
if (value.equals(REJECT_MULTI_VALUE)) {
122122
errors.rejectValue("foo", "bad.value");
123123
errors.rejectValue("bar", "bad.value");
124-
return;
125124
}
126125
}
127126

spring-batch-integration/src/test/java/org/springframework/batch/integration/item/MessagingGatewayIntegrationTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -136,7 +136,6 @@ static class EndService {
136136
@ServiceActivator
137137
public void service(String input) {
138138
count++;
139-
return;
140139
}
141140

142141
}

0 commit comments

Comments
 (0)