Add FunctionalInterface annotation to ChunkProcessor

Signed-off-by: KyeongHoon Lee <leta6603@gmail.com>
This commit is contained in:
KyeongHoon Lee
2025-01-09 13:00:42 +09:00
committed by Mahmoud Ben Hassine
parent 42056e714d
commit 4c9b88eb52

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2006-2022 the original author or authors.
* Copyright 2006-2025 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,8 +22,10 @@ import org.springframework.batch.item.Chunk;
/**
* Interface defined for processing {@link org.springframework.batch.item.Chunk}s.
*
* @author Kyeonghoon Lee (Add FunctionalInterface annotation)
* @since 2.0
*/
@FunctionalInterface
public interface ChunkProcessor<I> {
void process(StepContribution contribution, Chunk<I> chunk) throws Exception;