beckchr / juel

Java Unified Expression Language
http://juel.sf.net
Apache License 2.0
133 stars 43 forks source link

Create HashMap in ELContext lazily #67

Closed beckchr closed 12 years ago

beckchr commented 12 years ago

[Issue migrated from SourceForge | ID: 3495100 | Submitted by 'martinkoci'] [http://sourceforge.net/support/tracker.php?aid=3495100]

Create HashMap in ELContext lazily, not directly in field.

Index: ELContext.java

--- ELContext.java(revision 227)

+++ ELContext.java(working copy)

@@ -42,7 +42,7 @@

-private final Map<Class<?>, Object> context = new HashMap<Class<?>, Object>();

+private Map<Class<?>, Object> context;

private Locale locale;

private boolean resolved;

@@ -63,6 +63,9 @@

@@ -134,6 +137,9 @@

beckchr commented 12 years ago

[Comment migrated from SourceForge | Submitted by 'beckchr']

Applied changes to ELContext in trunk, will be in 2.2.5.