harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ghar...@apache.org
Subject svn commit: r415290 - in /incubator/harmony/enhanced/classlib/trunk/modules: awt/src/main/java/common/java/awt/AWTKeyStroke.java swing/src/main/java/common/javax/swing/UIDefaults.java swing/src/main/java/common/javax/swing/plaf/metal/MetalLookAndFeel.java
Date Mon, 19 Jun 2006 11:08:05 GMT
Author: gharley
Date: Mon Jun 19 04:08:04 2006
New Revision: 415290

URL: http://svn.apache.org/viewvc?rev=415290&view=rev
Log:
Fix compiler warnings for calls to varargs methods. 

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/AWTKeyStroke.java
    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/awt/src/main/java/common/java/awt/AWTKeyStroke.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/AWTKeyStroke.java?rev=415290&r1=415289&r2=415290&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/AWTKeyStroke.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/AWTKeyStroke.java
Mon Jun 19 04:08:04 2006
@@ -120,7 +120,7 @@
             key = new AWTKeyStroke();
         } else {
             try {
-                key = (AWTKeyStroke) subConstructor.newInstance(null);
+                key = (AWTKeyStroke) subConstructor.newInstance((Object)null);
             } catch (Exception e) {
                 throw new RuntimeException(e);
             }
@@ -276,7 +276,7 @@
             throw new ClassCastException("subclass is not derived from AWTKeyStroke");
         }
         try {
-            subConstructor = subclass.getDeclaredConstructor(null);
+            subConstructor = subclass.getDeclaredConstructor((Class)null);
             subConstructor.setAccessible(true);
         } catch (SecurityException e) {
             throw new RuntimeException(e);

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=415290&r1=415289&r2=415290&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
Mon Jun 19 04:08:04 2006
@@ -106,7 +106,7 @@
                         if (params == null) {
                             value = (methodName == null)
                                     ? classObj.newInstance()
-                                    : classObj.getMethod(methodName, 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=415290&r1=415289&r2=415290&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
Mon Jun 19 04:08:04 2006
@@ -1238,7 +1238,7 @@
                 Class classObj = Class.forName(className);
                 result = (methodName == null)
                         ? classObj.newInstance()
-                        : classObj.getMethod(methodName, null).invoke(null, null);
+                        : classObj.getMethod(methodName, (Class)null).invoke(null, null);
             } catch (final Exception e) {
                 e.printStackTrace();
             }



Mime
View raw message