[jboss-cvs] JBossAS SVN: r81976 - projects/jboss-reflect/trunk/src/main/java/org/jboss/beans/info/plugins.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Dec 2 12:33:45 EST 2008
Author: alesj
Date: 2008-12-02 12:33:45 -0500 (Tue, 02 Dec 2008)
New Revision: 81976
Modified:
projects/jboss-reflect/trunk/src/main/java/org/jboss/beans/info/plugins/AbstractBeanInfo.java
Log:
[JBREFLECT-48]; initial work on fixing NPE - TODO on tests.
Modified: projects/jboss-reflect/trunk/src/main/java/org/jboss/beans/info/plugins/AbstractBeanInfo.java
===================================================================
--- projects/jboss-reflect/trunk/src/main/java/org/jboss/beans/info/plugins/AbstractBeanInfo.java 2008-12-02 17:32:37 UTC (rev 81975)
+++ projects/jboss-reflect/trunk/src/main/java/org/jboss/beans/info/plugins/AbstractBeanInfo.java 2008-12-02 17:33:45 UTC (rev 81976)
@@ -22,11 +22,10 @@
package org.jboss.beans.info.plugins;
import java.util.Arrays;
-import java.util.Collections;
import java.util.HashMap;
+import java.util.HashSet;
import java.util.Map;
import java.util.Set;
-import java.util.HashSet;
import org.jboss.beans.info.spi.BeanInfo;
import org.jboss.beans.info.spi.BeanInfoFactory;
@@ -43,6 +42,7 @@
import org.jboss.reflect.spi.TypeInfo;
import org.jboss.util.JBossObject;
import org.jboss.util.JBossStringBuilder;
+import org.jboss.util.collection.CollectionsFactory;
/**
* BeanInfo.
@@ -60,10 +60,10 @@
protected ClassAdapter classAdapter;
/** The properties */
- private Set<PropertyInfo> properties;
+ private Set<PropertyInfo> properties = CollectionsFactory.createLazySet();
/** The properties by name */
- private transient Map<String, PropertyInfo> propertiesByName = Collections.emptyMap();
+ private transient Map<String, PropertyInfo> propertiesByName = CollectionsFactory.createLazyMap();
/** The constructors */
private Set<ConstructorInfo> constructors;
More information about the jboss-cvs-commits
mailing list