From e01ccfb057b42dbd133dcd5bf809a4228e058e38 Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Fri, 25 Apr 2008 04:51:52 +0000 Subject: [PATCH] ONE --- .../repository/support/AbstractFlowExecutionRepository.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spring-webflow/src/main/java/org/springframework/webflow/execution/repository/support/AbstractFlowExecutionRepository.java b/spring-webflow/src/main/java/org/springframework/webflow/execution/repository/support/AbstractFlowExecutionRepository.java index f514001e..37c6f767 100644 --- a/spring-webflow/src/main/java/org/springframework/webflow/execution/repository/support/AbstractFlowExecutionRepository.java +++ b/spring-webflow/src/main/java/org/springframework/webflow/execution/repository/support/AbstractFlowExecutionRepository.java @@ -58,6 +58,8 @@ public abstract class AbstractFlowExecutionRepository implements FlowExecutionRe */ protected final Log logger = LogFactory.getLog(getClass()); + private static final Integer ONE = new Integer(1); + private ConversationManager conversationManager; private FlowExecutionStateRestorer executionStateRestorer; @@ -108,7 +110,7 @@ public abstract class AbstractFlowExecutionRepository implements FlowExecutionRe public FlowExecutionKey getKey(FlowExecution execution) { if (execution.getKey() == null) { Conversation conversation = beginConversation(execution); - return new CompositeFlowExecutionKey(conversation.getId(), Integer.valueOf(1)); + return new CompositeFlowExecutionKey(conversation.getId(), ONE); } else { return getNextKey(execution); }