harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r823787 - /harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Toolkit.java
Date Sat, 10 Oct 2009 04:08:13 GMT
Author: ndbeyer
Date: Sat Oct 10 04:08:13 2009
New Revision: 823787

URL: http://svn.apache.org/viewvc?rev=823787&view=rev
Log:
remove unused imports, simplify not implemented methods

Modified:
    harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Toolkit.java

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Toolkit.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Toolkit.java?rev=823787&r1=823786&r2=823787&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Toolkit.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Toolkit.java
Sat Oct 10 04:08:13 2009
@@ -60,8 +60,6 @@
 import java.beans.PropertyChangeSupport;
 import java.lang.reflect.InvocationTargetException;
 import java.net.URL;
-import java.security.AccessController;
-import java.security.PrivilegedAction;
 import java.util.Collections;
 import java.util.EventListener;
 import java.util.HashMap;
@@ -96,6 +94,7 @@
 import org.apache.harmony.awt.wtk.Synchronizer;
 import org.apache.harmony.awt.wtk.WTK;
 import org.apache.harmony.awt.wtk.WindowFactory;
+import org.apache.harmony.luni.util.NotImplementedException;
 
 public abstract class Toolkit {
     private static final String RECOURCE_PATH = "org.apache.harmony.awt.resources.AWTProperties";
//$NON-NLS-1$
@@ -692,16 +691,8 @@
         };
     }
 
-    protected LightweightPeer createComponent(Component a0) throws org.apache.harmony.luni.util.NotImplementedException
{
-        lockAWT();
-        try {
-        } finally {
-            unlockAWT();
-        }
-        if (true) {
-            throw new RuntimeException("Method is not implemented"); //TODO: implement //$NON-NLS-1$
-        }
-        return null;
+    protected LightweightPeer createComponent(Component a0) throws NotImplementedException
{
+        throw new NotImplementedException();
     }
 
     public Image createImage(byte[] imagedata) {



Mime
View raw message