Fix build warnings

This commit is contained in:
Mahmoud Ben Hassine
2019-01-29 23:36:53 +01:00
parent 177856ffd7
commit fbe345630b
7 changed files with 23 additions and 16 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2006-2007 the original author or authors.
* Copyright 2006-2019 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.
@@ -22,9 +22,10 @@ import org.springframework.batch.core.test.football.PlayerSummary;
import org.springframework.jdbc.core.RowMapper;
/**
* RowMapper used to map a ResultSet to a {@link PlayerSummary}
* RowMapper used to map a ResultSet to a {@link org.springframework.batch.core.test.football.PlayerSummary}
*
* @author Lucas Ward
* @author Mahmoud Ben Hassine
*
*/
public class PlayerSummaryMapper implements RowMapper<PlayerSummary> {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2006-2007 the original author or authors.
* Copyright 2006-2019 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.
@@ -22,9 +22,10 @@ import org.springframework.batch.core.test.football.PlayerSummary;
import org.springframework.jdbc.core.RowMapper;
/**
* RowMapper used to map a ResultSet to a {@link PlayerSummary}
* RowMapper used to map a ResultSet to a {@link org.springframework.batch.core.test.football.PlayerSummary}
*
* @author Lucas Ward
* @author Mahmoud Ben Hassine
*
*/
public class PlayerSummaryRowMapper implements RowMapper<PlayerSummary> {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2013-2017 the original author or authors.
* Copyright 2013-2019 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.
@@ -138,6 +138,7 @@ import org.springframework.util.Assert;
*
* @author Michael Minella
* @author Chris Schaefer
* @author Mahmoud Ben Hassine
* @since 3.0
*/
public class JsrJobOperator implements JobOperator, ApplicationContextAware, InitializingBean {
@@ -177,7 +178,7 @@ public class JsrJobOperator implements JobOperator, ApplicationContextAware, Ini
* @param jobExplorer an instance of Spring Batch's {@link JobExplorer}.
* @param jobRepository an instance of Spring Batch's {@link JobOperator}.
* @param jobParametersConverter an instance of Spring Batch's {@link JobParametersConverter}.
* @param transactionManager a {@link javax.transaction.TransactionManager}.
* @param transactionManager a {@link PlatformTransactionManager}.
*/
public JsrJobOperator(JobExplorer jobExplorer, JobRepository jobRepository, JobParametersConverter jobParametersConverter, PlatformTransactionManager transactionManager) {
Assert.notNull(jobExplorer, "A JobExplorer is required");

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2018 the original author or authors.
* Copyright 2018-2019 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.
@@ -15,7 +15,7 @@
*/
/**
* Adapters for {@link java.util.function} components.
* Adapters for {@code java.util.function} components.
*
* @author Mahmoud Ben Hassine
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2017-2018 the original author or authors.
* Copyright 2017-2019 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.
@@ -28,6 +28,7 @@ import org.springframework.util.Assert;
*
* @author Glenn Renfro
* @author Drummond Dawson
* @author Mahmoud Ben Hassine
* @since 4.0
*/
public class CompositeItemWriterBuilder<T> {
@@ -72,13 +73,14 @@ public class CompositeItemWriterBuilder<T> {
* The item writers to use as delegates. Items are written to each of the
* delegates.
*
* @param delegates the delegates to use. The delegates list must not be null
* nor be empty.
* @param delegates the delegates to use.
* @return this instance for method chaining.
*
* @see CompositeItemWriter#setDelegates(List)
*/
public CompositeItemWriterBuilder<T> delegates(ItemWriter<? super T>... delegates) {
@SafeVarargs
@SuppressWarnings("varargs")
public final CompositeItemWriterBuilder<T> delegates(ItemWriter<? super T>... delegates) {
return delegates(Arrays.asList(delegates));
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2006-2007 the original author or authors.
* Copyright 2006-2019 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.
@@ -22,9 +22,10 @@ import org.springframework.batch.sample.domain.football.PlayerSummary;
import org.springframework.jdbc.core.RowMapper;
/**
* RowMapper used to map a ResultSet to a {@link PlayerSummary}
* RowMapper used to map a ResultSet to a {@link org.springframework.batch.core.test.football.PlayerSummary}
*
* @author Lucas Ward
* @author Mahmoud Ben Hassine
*
*/
public class PlayerSummaryMapper implements RowMapper<PlayerSummary> {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2006-2007 the original author or authors.
* Copyright 2006-2019 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.
@@ -22,9 +22,10 @@ import org.springframework.batch.sample.domain.football.PlayerSummary;
import org.springframework.jdbc.core.RowMapper;
/**
* RowMapper used to map a ResultSet to a {@link PlayerSummary}
* RowMapper used to map a ResultSet to a {@link org.springframework.batch.core.test.football.PlayerSummary}
*
* @author Lucas Ward
* @author Mahmoud Ben Hassine
*
*/
public class PlayerSummaryRowMapper implements RowMapper<PlayerSummary> {