Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some warnings #107

Merged
merged 1 commit into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ tasks.compileJava {
options.encoding = "UTF-8"
}

tasks.javadoc {
options {
(this as CoreJavadocOptions).addStringOption("Xdoclint:none", "-quiet")
}
}

sourceSets {
create("integrationTest") {
compileClasspath += sourceSets.main.get().output
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
* limitations under the License.
*/

@file:Suppress("DEPRECATION")

package com.navercorp.spring.batch.plus.kotlin.item.adapter

import com.navercorp.spring.batch.plus.item.adapter.AdapterFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
* limitations under the License.
*/

@file:Suppress("DEPRECATION")

package com.navercorp.spring.batch.plus.kotlin.item.adapter

import com.navercorp.spring.batch.plus.item.adapter.ItemProcessorAdapter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@ public final class AdapterFactory {
* Create an adapter which adapt {@link ItemStreamReaderDelegate} to {@link ItemStreamReader}
* with {@link StepScope} bound proxy implementation. It creates new instance for every {@link StepScope}.
*
* @deprecated use {@link com.navercorp.spring.batch.plus.step.adapter.AdapterFactory#itemStreamReader(ItemStreamFluxReaderDelegate)} instead.
* @return an adapted ItemStreamReader
* @deprecated use {@link com.navercorp.spring.batch.plus.step.adapter.AdapterFactory#itemStreamReader(
*ItemStreamFluxReaderDelegate)} instead.
*
* @param <T> a read item type
* @param delegate a delegate
* @return an adapted ItemStreamReader
*/
@Deprecated
public static <T> ItemStreamReader<T> itemStreamReader(@NonNull ItemStreamReaderDelegate<T> delegate) {
Expand All @@ -55,11 +58,14 @@ public static <T> ItemStreamReader<T> itemStreamReader(@NonNull ItemStreamReader
/**
* Create an adapter which adapt {@link ItemProcessorDelegate} to {@link ItemProcessor}.
*
* @deprecated use {@link com.navercorp.spring.batch.plus.step.adapter.AdapterFactory#itemProcessor(com.navercorp.spring.batch.plus.step.adapter.ItemProcessorDelegate)} instead.
* @param delegate a delegate
* @return an adapted ItemProcessor
* @deprecated use
* {@link com.navercorp.spring.batch.plus.step.adapter.AdapterFactory#itemProcessor(
*com.navercorp.spring.batch.plus.step.adapter.ItemProcessorDelegate)} instead.
*
* @param <I> an item type to process
* @param <O> a processed item type
* @param delegate a delegate
* @return an adapted ItemProcessor
*/
@Deprecated
public static <I, O> ItemProcessor<I, O> itemProcessor(@NonNull ItemProcessorDelegate<I, O> delegate) {
Expand All @@ -69,10 +75,12 @@ public static <I, O> ItemProcessor<I, O> itemProcessor(@NonNull ItemProcessorDel
/**
* Create an adapter which adapt {@link ItemStreamWriterDelegate} to {@link ItemStreamWriter}.
*
* @deprecated use {@link com.navercorp.spring.batch.plus.step.adapter.AdapterFactory#itemStreamWriter(com.navercorp.spring.batch.plus.step.adapter.ItemStreamWriterDelegate)} instead.
* @deprecated use {@link com.navercorp.spring.batch.plus.step.adapter.AdapterFactory#itemStreamWriter(
*com.navercorp.spring.batch.plus.step.adapter.ItemStreamWriterDelegate)} instead.
*
* @param <T> an item type to write
* @param delegate a delegate
* @return an adapted ItemStreamWriter
* @param <T> an item type to write
*/
@Deprecated
public static <T> ItemStreamWriter<T> itemStreamWriter(@NonNull ItemStreamWriterDelegate<T> delegate) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ public final class AdapterFactory {
* Create an adapter which adapt {@link ItemStreamFluxReaderDelegate} to {@link ItemStreamReader}
* with {@link StepScope} bound proxy implementation. It creates new instance for every {@link StepScope}.
*
* @param <T> a read item type
* @param delegate a delegate
* @return an adapted ItemStreamReader
* @param <T> a read item type
*/
public static <T> ItemStreamReader<T> itemStreamReader(@NonNull ItemStreamFluxReaderDelegate<T> delegate) {
Objects.requireNonNull(delegate, "ItemStreamReader delegate is null");
Expand All @@ -56,9 +56,9 @@ public static <T> ItemStreamReader<T> itemStreamReader(@NonNull ItemStreamFluxRe
* Create an adapter which adapt {@link ItemStreamIterableReaderDelegate} to {@link ItemStreamReader}
* with {@link StepScope} bound proxy implementation. It creates new instance for every {@link StepScope}.
*
* @param <T> a read item type
* @param delegate a delegate
* @return an adapted ItemStreamReader
* @param <T> a read item type
*/
public static <T> ItemStreamReader<T> itemStreamReader(@NonNull ItemStreamIterableReaderDelegate<T> delegate) {
Objects.requireNonNull(delegate, "ItemStreamReader delegate is null");
Expand All @@ -69,9 +69,9 @@ public static <T> ItemStreamReader<T> itemStreamReader(@NonNull ItemStreamIterab
* Create an adapter which adapt {@link ItemStreamIteratorReaderDelegate} to {@link ItemStreamReader}
* with {@link StepScope} bound proxy implementation. It creates new instance for every {@link StepScope}.
*
* @param <T> a read item type
* @param delegate a delegate
* @return an adapted ItemStreamReader
* @param <T> a read item type
*/
public static <T> ItemStreamReader<T> itemStreamReader(@NonNull ItemStreamIteratorReaderDelegate<T> delegate) {
Objects.requireNonNull(delegate, "ItemStreamReader delegate is null");
Expand All @@ -82,9 +82,9 @@ public static <T> ItemStreamReader<T> itemStreamReader(@NonNull ItemStreamIterat
* Create an adapter which adapt {@link ItemStreamSimpleReaderDelegate} to {@link ItemStreamReader}
* with {@link StepScope} bound proxy implementation. It creates new instance for every {@link StepScope}.
*
* @param <T> a read item type
* @param delegate a delegate
* @return an adapted ItemStreamReader
* @param <T> a read item type
*/
public static <T> ItemStreamReader<T> itemStreamReader(@NonNull ItemStreamSimpleReaderDelegate<T> delegate) {
Objects.requireNonNull(delegate, "ItemStreamReader delegate is null");
Expand All @@ -94,10 +94,10 @@ public static <T> ItemStreamReader<T> itemStreamReader(@NonNull ItemStreamSimple
/**
* Create an adapter which adapt {@link ItemProcessorDelegate} to {@link ItemProcessor}.
*
* @param delegate a delegate
* @return an adapted ItemProcessor
* @param <I> an item type to process
* @param <O> a processed item type
* @param delegate a delegate
* @return an adapted ItemProcessor
*/
public static <I, O> ItemProcessor<I, O> itemProcessor(@NonNull ItemProcessorDelegate<I, O> delegate) {
return ItemProcessorAdapter.of(delegate);
Expand All @@ -106,9 +106,9 @@ public static <I, O> ItemProcessor<I, O> itemProcessor(@NonNull ItemProcessorDel
/**
* Create an adapter which adapt {@link ItemStreamWriterDelegate} to {@link ItemStreamWriter}.
*
* @param <T> an item type to write
* @param delegate a delegate
* @return an adapted ItemStreamWriter
* @param <T> an item type to write
*/
public static <T> ItemStreamWriter<T> itemStreamWriter(@NonNull ItemStreamWriterDelegate<T> delegate) {
return ItemStreamWriterAdapter.of(delegate);
Expand Down
Loading