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