From 42d22d30f1e73be56dac18fd1ae909dea4a5149c Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Wed, 21 May 2014 16:20:25 -0400 Subject: [PATCH] Fix empty map initialization to in java config Issue: SWF-1632 --- .../webflow/config/FlowDefinitionRegistryBuilder.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spring-webflow/src/main/java/org/springframework/webflow/config/FlowDefinitionRegistryBuilder.java b/spring-webflow/src/main/java/org/springframework/webflow/config/FlowDefinitionRegistryBuilder.java index 2f330b09..82459b2c 100644 --- a/spring-webflow/src/main/java/org/springframework/webflow/config/FlowDefinitionRegistryBuilder.java +++ b/spring-webflow/src/main/java/org/springframework/webflow/config/FlowDefinitionRegistryBuilder.java @@ -18,6 +18,7 @@ package org.springframework.webflow.config; import java.io.IOException; import java.util.ArrayList; import java.util.Collections; +import java.util.HashMap; import java.util.List; import java.util.Map; @@ -314,7 +315,7 @@ public class FlowDefinitionRegistryBuilder { this.id = id; this.attributes = (attributes != null) ? new LocalAttributeMap(attributes) : - new LocalAttributeMap(Collections.emptyMap()); + new LocalAttributeMap(new HashMap()); } public String getPath() { @@ -343,7 +344,7 @@ public class FlowDefinitionRegistryBuilder { this.id = id; this.attributes = (attributes != null) ? new LocalAttributeMap(attributes) : - new LocalAttributeMap(Collections.emptyMap()); + new LocalAttributeMap(new HashMap()); } public FlowBuilder getBuilder() {