changeset 4173:f0f6b7687ce3

RT-31029: Update design time API code Contributed-By: Yves Joan <yves.joan@oracle.com>
author rbair
date Wed, 03 Jul 2013 13:52:06 -0700
parents 71deba7c9601
children 0bf0d9dafcc7
files modules/designTime/src/main/java/com/sun/javafx/beans/design/author/AbstractDesignInfo.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/modules/designTime/src/main/java/com/sun/javafx/beans/design/author/AbstractDesignInfo.java	Wed Jul 03 13:48:56 2013 -0700
+++ b/modules/designTime/src/main/java/com/sun/javafx/beans/design/author/AbstractDesignInfo.java	Wed Jul 03 13:52:06 2013 -0700
@@ -29,7 +29,6 @@
 
 /**
  *
- * @author Richard
  */
 public abstract class AbstractDesignInfo<T> implements DesignInfo<T> {
     private Class<T> type;
@@ -37,7 +36,6 @@
 
     protected AbstractDesignInfo(Class<T> type) {
         this.type = type;
-        metaData = new BeanMetaData<T>(type);
     }
 
     @Override public Class<T> getBeanClass() {
@@ -45,6 +43,9 @@
     }
 
     protected final BeanMetaData getMetaData() {
+        if(metaData == null){
+            metaData = new BeanMetaData<>(type);
+        }
         return metaData;
     }
 }