Author: julien_viet
Date: 2010-01-22 08:01:05 -0500 (Fri, 22 Jan 2010)
New Revision: 1419
Modified:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/ConfigurationManager.java
Log:
my tribute to the ArrayList / JiBX bug fix
Modified:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/ConfigurationManager.java
===================================================================
---
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/ConfigurationManager.java 2010-01-22
12:34:51 UTC (rev 1418)
+++
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/ConfigurationManager.java 2010-01-22
13:01:05 UTC (rev 1419)
@@ -241,7 +241,7 @@
config.setInitParams(toInitParams(annotation.initParams()));
EventConfig[] eventAnnotations = annotation.events();
- List<Event> events;
+ ArrayList<Event> events;
if (eventAnnotations.length != 0)
{
events = new ArrayList<Event>();
@@ -252,12 +252,12 @@
}
else
{
- events = Collections.emptyList();
+ events = new ArrayList<Event>();
}
config.setEvents(events);
EventInterceptorConfig[] eventInterceptorAnnotations =
annotation.eventInterceptors();
- List<EventInterceptor> eventInterceptors;
+ ArrayList<EventInterceptor> eventInterceptors;
if (eventInterceptorAnnotations.length != 0)
{
eventInterceptors = new ArrayList<EventInterceptor>();
@@ -268,12 +268,12 @@
}
else
{
- eventInterceptors = Collections.emptyList();
+ eventInterceptors = new ArrayList<EventInterceptor>();
}
config.setEventInterceptors(eventInterceptors);
ValidatorConfig[] validatorAnnotations = annotation.validators();
- List<Validator> validators;
+ ArrayList<Validator> validators;
if (validatorAnnotations.length != 0)
{
validators = new ArrayList<Validator>();
@@ -284,7 +284,7 @@
}
else
{
- validators = Collections.emptyList();
+ validators = new ArrayList<Validator>();
}
config.setValidators(validators);
Show replies by date