Remove redundant "extends Object"
This commit is contained in:
@@ -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.
|
||||
@@ -46,7 +46,7 @@ public class DefaultItemFailureHandler extends ItemListenerSupport<Object, Objec
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onWriteError(Exception ex, Chunk<? extends Object> item) {
|
||||
public void onWriteError(Exception ex, Chunk<?> item) {
|
||||
try {
|
||||
logger.error("Error encountered while writing item: [ " + item + "]", ex);
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user