Remove redundant "extends Object"

This commit is contained in:
Mahmoud Ben Hassine
2023-06-22 11:17:13 +02:00
parent 51f6357e91
commit ee30af4789
8 changed files with 16 additions and 16 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2009-2022 the original author or authors.
* Copyright 2009-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.
@@ -26,7 +26,7 @@ import org.springframework.batch.item.ItemWriter;
public class DummyItemWriter implements ItemWriter<Object> {
@Override
public void write(Chunk<? extends Object> items) throws Exception {
public void write(Chunk<?> items) throws Exception {
}
}

View File

@@ -256,7 +256,7 @@ class SimpleStepFactoryBeanTests {
String trail = "";
@Override
public void beforeWrite(Chunk<? extends Object> chunk) {
public void beforeWrite(Chunk<?> chunk) {
if (chunk.getItems().contains("error")) {
throw new RuntimeException("rollback the last chunk");
}
@@ -265,7 +265,7 @@ class SimpleStepFactoryBeanTests {
}
@Override
public void afterWrite(Chunk<? extends Object> items) {
public void afterWrite(Chunk<?> items) {
trail = trail + "3";
}