harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ton...@apache.org
Subject svn commit: r727043 - /harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/StandardBeanInfo.java
Date Tue, 16 Dec 2008 13:19:13 GMT
Author: tonywu
Date: Tue Dec 16 05:19:12 2008
New Revision: 727043

URL: http://svn.apache.org/viewvc?rev=727043&view=rev
Log:
defer the loading of class java.awt.Image, improve performance as well as modularity.

Modified:
    harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/StandardBeanInfo.java

Modified: harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/StandardBeanInfo.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/StandardBeanInfo.java?rev=727043&r1=727042&r2=727043&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/StandardBeanInfo.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/StandardBeanInfo.java
Tue Dec 16 05:19:12 2008
@@ -87,7 +87,7 @@
 
     private static PropertyComparator comparator = new PropertyComparator();
 
-    private Image[] icon = new Image[4];
+    private Object[] icon = new Object[4];
 
     private boolean canAddPropertyChangeListener;
 
@@ -196,7 +196,7 @@
 
     @Override
     public Image getIcon(int iconKind) {
-        return icon[iconKind - 1];
+        return (Image)icon[iconKind - 1];
     }
 
     void mergeBeanInfo(BeanInfo beanInfo, boolean force)



Mime
View raw message