harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r823957 - /harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Canvas.java
Date Sat, 10 Oct 2009 21:47:20 GMT
Author: ndbeyer
Date: Sat Oct 10 21:47:20 2009
New Revision: 823957

URL: http://svn.apache.org/viewvc?rev=823957&view=rev
Log:
simplify not implemented impl

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

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Canvas.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Canvas.java?rev=823957&r1=823956&r2=823957&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Canvas.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Canvas.java
Sat Oct 10 21:47:20 2009
@@ -24,6 +24,8 @@
 import javax.accessibility.AccessibleContext;
 import javax.accessibility.AccessibleRole;
 
+import org.apache.harmony.luni.util.NotImplementedException;
+
 public class Canvas extends Component implements Accessible {
     private static final long serialVersionUID = -2284879212465893870L;
 
@@ -73,28 +75,12 @@
         }
     }
 
-    public void createBufferStrategy(int a0) throws org.apache.harmony.luni.util.NotImplementedException
{
-        toolkit.lockAWT();
-        try {
-        } finally {
-            toolkit.unlockAWT();
-        }
-        if (true) {
-            throw new RuntimeException("Method is not implemented"); //TODO: implement //$NON-NLS-1$
-        }
-        return;
+    public void createBufferStrategy(int a0) throws NotImplementedException {
+        throw new NotImplementedException();
     }
 
-    public void createBufferStrategy(int a0, BufferCapabilities a1) throws AWTException,
org.apache.harmony.luni.util.NotImplementedException {
-        toolkit.lockAWT();
-        try {
-        } finally {
-            toolkit.unlockAWT();
-        }
-        if (true) {
-            throw new RuntimeException("Method is not implemented"); //TODO: implement //$NON-NLS-1$
-        }
-        return;
+    public void createBufferStrategy(int a0, BufferCapabilities a1) throws AWTException,
NotImplementedException {
+        throw new NotImplementedException();
     }
 
     @Override
@@ -102,16 +88,8 @@
         return super.getAccessibleContext();
     }
 
-    public BufferStrategy getBufferStrategy() throws org.apache.harmony.luni.util.NotImplementedException
{
-        toolkit.lockAWT();
-        try {
-        } finally {
-            toolkit.unlockAWT();
-        }
-        if (true) {
-            throw new RuntimeException("Method is not implemented"); //TODO: implement //$NON-NLS-1$
-        }
-        return null;
+    public BufferStrategy getBufferStrategy() throws NotImplementedException {
+        throw new NotImplementedException();
     }
 
     @Override



Mime
View raw message