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

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

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2006-2021 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.
@@ -389,7 +389,7 @@ public class BeanWrapperFieldSetMapper<T> extends DefaultPropertyEditorRegistrar
* @see CustomEditorConfigurer#setCustomEditors(Map)
*/
@Override
public void setCustomEditors(Map<? extends Object, ? extends PropertyEditor> customEditors) {
public void setCustomEditors(Map<?, ? extends PropertyEditor> customEditors) {
this.isCustomEditorsSet = true;
super.setCustomEditors(customEditors);
}

View File

@@ -60,9 +60,9 @@ public class DefaultPropertyEditorRegistrar implements PropertyEditorRegistrar {
* PropertyEditor).
* @see CustomEditorConfigurer#setCustomEditors(Map)
*/
public void setCustomEditors(Map<? extends Object, ? extends PropertyEditor> customEditors) {
public void setCustomEditors(Map<?, ? extends PropertyEditor> customEditors) {
this.customEditors = new HashMap<>();
for (Entry<? extends Object, ? extends PropertyEditor> entry : customEditors.entrySet()) {
for (Entry<?, ? extends PropertyEditor> entry : customEditors.entrySet()) {
Object key = entry.getKey();
Class<?> requiredType = null;
if (key instanceof Class<?>) {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2022 the original author or authors.
* Copyright 2022-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.
@@ -31,7 +31,7 @@ public class ExampleItemWriter implements ItemWriter<Object> {
/**
* @see ItemWriter#write(Chunk)
*/
public void write(Chunk<? extends Object> data) throws Exception {
public void write(Chunk<?> data) throws Exception {
log.info(data);
}

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.
@@ -53,7 +53,7 @@ public class InfiniteLoopWriter implements StepExecutionListener, ItemWriter<Obj
}
@Override
public void write(Chunk<? extends Object> items) throws Exception {
public void write(Chunk<?> items) throws Exception {
try {
Thread.sleep(500);
}

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.
@@ -26,7 +26,7 @@ import org.springframework.batch.item.ItemWriter;
public class DummyItemWriter implements ItemWriter<Object> {
@Override
public void write(Chunk<? extends Object> item) throws Exception {
public void write(Chunk<?> items) throws Exception {
// NO-OP
Thread.sleep(500);
}