Skip to content

Commit ee30af4

Browse files
committed
Remove redundant "extends Object"
1 parent 51f6357 commit ee30af4

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/step/item/DefaultItemFailureHandler.java

+2-2
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.
@@ -46,7 +46,7 @@ public void onReadError(Exception ex) {
4646
}
4747

4848
@Override
49-
public void onWriteError(Exception ex, Chunk<? extends Object> item) {
49+
public void onWriteError(Exception ex, Chunk<?> item) {
5050
try {
5151
logger.error("Error encountered while writing item: [ " + item + "]", ex);
5252
}

spring-batch-core/src/test/java/org/springframework/batch/core/configuration/xml/DummyItemWriter.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2009-2022 the original author or authors.
2+
* Copyright 2009-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.
@@ -26,7 +26,7 @@
2626
public class DummyItemWriter implements ItemWriter<Object> {
2727

2828
@Override
29-
public void write(Chunk<? extends Object> items) throws Exception {
29+
public void write(Chunk<?> items) throws Exception {
3030
}
3131

3232
}

spring-batch-core/src/test/java/org/springframework/batch/core/step/item/SimpleStepFactoryBeanTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ class AssertingWriteListener extends StepListenerSupport<Object, Object> {
256256
String trail = "";
257257

258258
@Override
259-
public void beforeWrite(Chunk<? extends Object> chunk) {
259+
public void beforeWrite(Chunk<?> chunk) {
260260
if (chunk.getItems().contains("error")) {
261261
throw new RuntimeException("rollback the last chunk");
262262
}
@@ -265,7 +265,7 @@ public void beforeWrite(Chunk<? extends Object> chunk) {
265265
}
266266

267267
@Override
268-
public void afterWrite(Chunk<? extends Object> items) {
268+
public void afterWrite(Chunk<?> items) {
269269
trail = trail + "3";
270270
}
271271

spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/mapping/BeanWrapperFieldSetMapper.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2021 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.
@@ -389,7 +389,7 @@ public void setConversionService(ConversionService conversionService) {
389389
* @see CustomEditorConfigurer#setCustomEditors(Map)
390390
*/
391391
@Override
392-
public void setCustomEditors(Map<? extends Object, ? extends PropertyEditor> customEditors) {
392+
public void setCustomEditors(Map<?, ? extends PropertyEditor> customEditors) {
393393
this.isCustomEditorsSet = true;
394394
super.setCustomEditors(customEditors);
395395
}

spring-batch-infrastructure/src/main/java/org/springframework/batch/support/DefaultPropertyEditorRegistrar.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ public void registerCustomEditors(PropertyEditorRegistry registry) {
6060
* PropertyEditor).
6161
* @see CustomEditorConfigurer#setCustomEditors(Map)
6262
*/
63-
public void setCustomEditors(Map<? extends Object, ? extends PropertyEditor> customEditors) {
63+
public void setCustomEditors(Map<?, ? extends PropertyEditor> customEditors) {
6464
this.customEditors = new HashMap<>();
65-
for (Entry<? extends Object, ? extends PropertyEditor> entry : customEditors.entrySet()) {
65+
for (Entry<?, ? extends PropertyEditor> entry : customEditors.entrySet()) {
6666
Object key = entry.getKey();
6767
Class<?> requiredType = null;
6868
if (key instanceof Class<?>) {

spring-batch-integration/src/test/java/org/springframework/batch/integration/partition/ExampleItemWriter.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022 the original author or authors.
2+
* Copyright 2022-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.
@@ -31,7 +31,7 @@ public class ExampleItemWriter implements ItemWriter<Object> {
3131
/**
3232
* @see ItemWriter#write(Chunk)
3333
*/
34-
public void write(Chunk<? extends Object> data) throws Exception {
34+
public void write(Chunk<?> data) throws Exception {
3535
log.info(data);
3636
}
3737

spring-batch-samples/src/main/java/org/springframework/batch/sample/common/InfiniteLoopWriter.java

+2-2
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.
@@ -53,7 +53,7 @@ public InfiniteLoopWriter() {
5353
}
5454

5555
@Override
56-
public void write(Chunk<? extends Object> items) throws Exception {
56+
public void write(Chunk<?> items) throws Exception {
5757
try {
5858
Thread.sleep(500);
5959
}

spring-batch-samples/src/main/java/org/springframework/batch/sample/support/DummyItemWriter.java

+2-2
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.
@@ -26,7 +26,7 @@
2626
public class DummyItemWriter implements ItemWriter<Object> {
2727

2828
@Override
29-
public void write(Chunk<? extends Object> item) throws Exception {
29+
public void write(Chunk<?> items) throws Exception {
3030
// NO-OP
3131
Thread.sleep(500);
3232
}

0 commit comments

Comments
 (0)