From c24e4b39ea85a89f01ffe9c648828abddc0edc63 Mon Sep 17 00:00:00 2001 From: dhgarrette Date: Fri, 6 Mar 2009 15:52:12 +0000 Subject: [PATCH] BATCH-1123: added break to the loop when a match is found. --- .../batch/core/listener/ExecutionContextPromotionListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/listener/ExecutionContextPromotionListener.java b/spring-batch-core/src/main/java/org/springframework/batch/core/listener/ExecutionContextPromotionListener.java index c7e85d0b2..1fc464b91 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/listener/ExecutionContextPromotionListener.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/listener/ExecutionContextPromotionListener.java @@ -62,6 +62,7 @@ public class ExecutionContextPromotionListener extends StepExecutionListenerSupp for (String statusPattern : statuses) { if (PatternMatcher.match(statusPattern, exitCode)) { this.performPromotion(stepExecution); + break; } }