Use annotation @Override consistently

This commit is contained in:
Henning Poettker
2023-12-09 15:37:03 +01:00
committed by Mahmoud Ben Hassine
parent 52beef2dac
commit 0d1d89c82f
138 changed files with 262 additions and 1689 deletions

View File

@@ -95,23 +95,12 @@ public class StagingItemWriter<T> extends JdbcDaoSupport implements StepExecutio
});
}
/*
* (non-Javadoc)
*
* @see org.springframework.batch.core.domain.StepListener#afterStep(StepExecution )
*/
@Nullable
@Override
public ExitStatus afterStep(StepExecution stepExecution) {
return null;
}
/*
* (non-Javadoc)
*
* @see org.springframework.batch.core.domain.StepListener#beforeStep(org.
* springframework.batch.core.domain.StepExecution)
*/
@Override
public void beforeStep(StepExecution stepExecution) {
this.stepExecution = stepExecution;

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.
@@ -40,13 +40,6 @@ public class CompositeCustomerUpdateLineTokenizer implements StepExecutionListen
private StepExecution stepExecution;
/*
* (non-Javadoc)
*
* @see
* org.springframework.batch.item.file.transform.LineTokenizer#tokenize(java.lang.
* String)
*/
@Override
public FieldSet tokenize(@Nullable String line) {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2006-2014 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.
@@ -30,12 +30,6 @@ public class CommonsLoggingInvalidCustomerLogger implements InvalidCustomerLogge
protected static final Log LOG = LogFactory.getLog(CommandLineJobRunner.class);
/*
* (non-Javadoc)
*
* @see org.springframework.batch.samples.domain.trade.InvalidCustomerLogger#log(org.
* springframework.batch.sample.domain.trade.CustomerUpdate)
*/
@Override
public void log(CustomerUpdate customerUpdate) {
LOG.error("invalid customer encountered: [ " + customerUpdate + "]");

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.
@@ -31,13 +31,6 @@ public class CustomerCreditUpdatePreparedStatementSetter implements ItemPrepared
public static final BigDecimal FIXED_AMOUNT = new BigDecimal(1000);
/*
* (non-Javadoc)
*
* @see
* org.springframework.batch.io.support.ItemPreparedStatementSetter#setValues(java.
* lang.Object, java.sql.PreparedStatement)
*/
@Override
public void setValues(CustomerCredit customerCredit, PreparedStatement ps) throws SQLException {
ps.setBigDecimal(1, customerCredit.getCredit().add(FIXED_AMOUNT));

View File

@@ -72,11 +72,6 @@ public class FlatFileCustomerCreditDao implements CustomerCreditDao, DisposableB
}
}
/*
* (non-Javadoc)
*
* @see org.springframework.beans.factory.DisposableBean#destroy()
*/
@Override
public void destroy() throws Exception {
close();

View File

@@ -51,13 +51,6 @@ public class HibernateCreditDao implements CustomerCreditDao, RepeatListener {
return errors;
}
/*
* (non-Javadoc)
*
* @see
* org.springframework.batch.samples.domain.trade.internal.CustomerCreditWriter#write(
* org.springframework.batch.samples.domain.CustomerCredit)
*/
@Override
public void writeCredit(CustomerCredit customerCredit) {
if (customerCredit.getId() == failOnFlush) {
@@ -73,11 +66,6 @@ public class HibernateCreditDao implements CustomerCreditDao, RepeatListener {
}
}
/*
* (non-Javadoc)
*
* @see org.springframework.batch.io.OutputSource#write(java.lang.Object)
*/
public void write(Object output) {
writeCredit((CustomerCredit) output);
}
@@ -95,46 +83,18 @@ public class HibernateCreditDao implements CustomerCreditDao, RepeatListener {
errors.add(e);
}
/*
* (non-Javadoc)
*
* @see
* org.springframework.batch.repeat.RepeatInterceptor#after(org.springframework.batch.
* repeat.RepeatContext, org.springframework.batch.repeat.ExitStatus)
*/
@Override
public void after(RepeatContext context, RepeatStatus result) {
}
/*
* (non-Javadoc)
*
* @see
* org.springframework.batch.repeat.RepeatInterceptor#before(org.springframework.batch
* .repeat.RepeatContext)
*/
@Override
public void before(RepeatContext context) {
}
/*
* (non-Javadoc)
*
* @see
* org.springframework.batch.repeat.RepeatInterceptor#close(org.springframework.batch.
* repeat.RepeatContext)
*/
@Override
public void close(RepeatContext context) {
}
/*
* (non-Javadoc)
*
* @see
* org.springframework.batch.repeat.RepeatInterceptor#open(org.springframework.batch.
* repeat.RepeatContext)
*/
@Override
public void open(RepeatContext context) {
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2006-2019 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.
@@ -30,11 +30,6 @@ import org.springframework.jdbc.core.RowMapper;
*/
public class PlayerSummaryMapper implements RowMapper<PlayerSummary> {
/*
* (non-Javadoc)
*
* @see org.springframework.jdbc.core.RowMapper#mapRow(java.sql.ResultSet, int)
*/
@Override
public PlayerSummary mapRow(ResultSet rs, int rowNum) throws SQLException {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2006-2019 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.
@@ -30,11 +30,6 @@ import org.springframework.jdbc.core.RowMapper;
*/
public class PlayerSummaryRowMapper implements RowMapper<PlayerSummary> {
/*
* (non-Javadoc)
*
* @see org.springframework.jdbc.core.RowMapper#mapRow(java.sql.ResultSet, int)
*/
@Override
public PlayerSummary mapRow(ResultSet rs, int rowNum) throws SQLException {

View File

@@ -33,11 +33,6 @@ public class SimpleMessageApplicationEvent extends ApplicationEvent {
this.message = message;
}
/*
* (non-Javadoc)
*
* @see java.util.EventObject#toString()
*/
@Override
public String toString() {
return "message=[" + message + "], " + super.toString();

View File

@@ -131,11 +131,6 @@ class CustomerFilterJobFunctionalTests {
return name;
}
/*
* (non-Javadoc)
*
* @see java.lang.Object#hashCode()
*/
@Override
public int hashCode() {
final int PRIME = 31;
@@ -147,11 +142,6 @@ class CustomerFilterJobFunctionalTests {
return result;
}
/*
* (non-Javadoc)
*
* @see java.lang.Object#equals(java.lang.Object)
*/
@Override
public boolean equals(Object obj) {
if (this == obj)