harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r415628 - /incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/AWTKeyStroke.java
Date Tue, 20 Jun 2006 12:14:11 GMT
Author: tellison
Date: Tue Jun 20 05:14:10 2006
New Revision: 415628

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

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/AWTKeyStroke.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=415628&r1=415627&r2=415628&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
Tue Jun 20 05:14:10 2006
@@ -120,7 +120,7 @@
             key = new AWTKeyStroke();
         } else {
             try {
-                key = (AWTKeyStroke) subConstructor.newInstance((Object)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((Class)null);
+            subConstructor = subclass.getDeclaredConstructor((Class[])null);
             subConstructor.setAccessible(true);
         } catch (SecurityException e) {
             throw new RuntimeException(e);



Mime
View raw message