BATCH-1123: added break to the loop when a match is found.

This commit is contained in:
dhgarrette
2009-03-06 15:52:12 +00:00
parent 8ca24b9575
commit c24e4b39ea

View File

@@ -62,6 +62,7 @@ public class ExecutionContextPromotionListener extends StepExecutionListenerSupp
for (String statusPattern : statuses) {
if (PatternMatcher.match(statusPattern, exitCode)) {
this.performPromotion(stepExecution);
break;
}
}