From 769a1a4c700708d3740c57a7d0b8346af80c7776 Mon Sep 17 00:00:00 2001 From: robokaso Date: Wed, 17 Sep 2008 08:23:44 +0000 Subject: [PATCH] OPEN - BATCH-803: Add non-buffering ChunkOrientedTasklet (or option in existing one) plus flag for factory bean made helper methods static where appropriate --- .../batch/core/step/item/ChunkOrientedTasklet.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/step/item/ChunkOrientedTasklet.java b/spring-batch-core/src/main/java/org/springframework/batch/core/step/item/ChunkOrientedTasklet.java index 67556c766..e944f31f3 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/step/item/ChunkOrientedTasklet.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/step/item/ChunkOrientedTasklet.java @@ -163,7 +163,7 @@ public class ChunkOrientedTasklet extends AbstractItemProcessingTasklet extends AbstractItemProcessingTasklet void store(AttributeAccessor attributes, String key, W value) { + private static void store(AttributeAccessor attributes, String key, W value) { attributes.setAttribute(key, value); } - private void clearAll(AttributeAccessor attributes) { + private static void clearAll(AttributeAccessor attributes) { for (String key : attributes.attributeNames()) { attributes.removeAttribute(key); } @@ -218,7 +218,7 @@ public class ChunkOrientedTasklet extends AbstractItemProcessingTasklet Chunk getBuffer(AttributeAccessor attributes, String key) { + private static Chunk getBuffer(AttributeAccessor attributes, String key) { if (!attributes.hasAttribute(key)) { return new Chunk(); }