harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r415615 - in /incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing: UIDefaults.java plaf/metal/MetalLookAndFeel.java
Date Tue, 20 Jun 2006 11:53:50 GMT
Author: tellison
Date: Tue Jun 20 04:53:49 2006
New Revision: 415615

URL: http://svn.apache.org/viewvc?rev=415615&view=rev
Log:
Changed null casts to (non-varargs) Class[].

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/UIDefaults.java
    incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/metal/MetalLookAndFeel.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/UIDefaults.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/UIDefaults.java?rev=415615&r1=415614&r2=415615&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/UIDefaults.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/UIDefaults.java
Tue Jun 20 04:53:49 2006
@@ -106,7 +106,7 @@
                         if (params == null) {
                             value = (methodName == null)
                                     ? classObj.newInstance()
-                                    : classObj.getMethod(methodName, (Class)null).invoke(null,
null);
+                                    : classObj.getMethod(methodName, (Class[])null).invoke(null,
null);
                         } else {
                             Class[] mParams = new Class[params.length];
                             for (int i = 0; i < mParams.length; i++) {

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/metal/MetalLookAndFeel.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/metal/MetalLookAndFeel.java?rev=415615&r1=415614&r2=415615&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/metal/MetalLookAndFeel.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/metal/MetalLookAndFeel.java
Tue Jun 20 04:53:49 2006
@@ -1238,7 +1238,7 @@
                 Class classObj = Class.forName(className);
                 result = (methodName == null)
                         ? classObj.newInstance()
-                        : classObj.getMethod(methodName, (Class)null).invoke(null, null);
+                        : classObj.getMethod(methodName, (Class[])null).invoke(null, null);
             } catch (final Exception e) {
                 e.printStackTrace();
             }



Mime
View raw message