harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mloe...@apache.org
Subject svn commit: r482569 - /harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/TransferHandler.java
Date Tue, 05 Dec 2006 10:19:42 GMT
Author: mloenko
Date: Tue Dec  5 02:19:41 2006
New Revision: 482569

URL: http://svn.apache.org/viewvc?view=rev&rev=482569
Log:
move array creation out of the loop

Modified:
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/TransferHandler.java

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/TransferHandler.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/TransferHandler.java?view=diff&rev=482569&r1=482568&r2=482569
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/TransferHandler.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/TransferHandler.java
Tue Dec  5 02:19:41 2006
@@ -286,9 +286,10 @@
            beanInfo = Introspector.getBeanInfo(c.getClass());
         } catch (IntrospectionException e) {
         }
-        for (int i = 0; i < beanInfo.getPropertyDescriptors().length; i++) {
-            String name = beanInfo.getPropertyDescriptors()[i]
-                          .getName();
+        
+        PropertyDescriptor[] list = beanInfo.getPropertyDescriptors(); 
+        for (int i = 0; i < list.length; i++) {
+            String name = list[i].getName();
             if (name.equals(propertyName)) {
                 return COPY;
             }



Mime
View raw message