public inbox for mauve-patches@sourceware.org
 help / color / mirror / Atom feed
* FYI: Minor cleanups
@ 2006-06-13 14:03 Gary Benson
  0 siblings, 0 replies; only message in thread
From: Gary Benson @ 2006-06-13 14:03 UTC (permalink / raw)
  To: mauve-patches

[-- Attachment #1: Type: text/plain, Size: 107 bytes --]

Hi all,

My last commit removed some unnecessary workarounds from the AWT
throwpoint checks.

Cheers,
Gary

[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 2279 bytes --]

Index: ChangeLog
===================================================================
RCS file: /cvs/mauve/mauve/ChangeLog,v
retrieving revision 1.1678
diff -u -r1.1678 ChangeLog
--- ChangeLog	13 Jun 2006 10:54:00 -0000	1.1678
+++ ChangeLog	13 Jun 2006 14:01:02 -0000
@@ -1,3 +1,8 @@
+2006-06-13  Gary Benson  <gbenson@redhat.com>
+
+	* gnu/testlet/java/awt/Robot/security.java: Minor cleanup.
+	* gnu/testlet/java/awt/Window/security.java: Likewise.
+
 2006-06-13  Raif S. Naffah  <raif@swiftdsl.com.au>
 
 	* gnu/testlet/gnu/javax/crypto/jce/TestOfPR27849.java: New test.
Index: gnu/testlet/java/awt/Robot/security.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/awt/Robot/security.java,v
retrieving revision 1.2
diff -u -r1.2 security.java
--- gnu/testlet/java/awt/Robot/security.java	2 Jun 2006 09:27:54 -0000	1.2
+++ gnu/testlet/java/awt/Robot/security.java	13 Jun 2006 14:01:02 -0000
@@ -26,7 +26,6 @@
 import java.awt.GraphicsDevice;
 import java.awt.GraphicsEnvironment;
 import java.awt.Robot;
-import java.awt.Toolkit;
 import java.security.Permission;
 import java.util.PropertyPermission;
 
@@ -39,9 +38,6 @@
   public void test(TestHarness harness)
   {
     try {
-      Toolkit.getDefaultToolkit();
-      Math.log(1);
-
       GraphicsDevice gd =
 	GraphicsEnvironment.getLocalGraphicsEnvironment()
 	                   .getDefaultScreenDevice();
Index: gnu/testlet/java/awt/Window/security.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/awt/Window/security.java,v
retrieving revision 1.2
diff -u -r1.2 security.java
--- gnu/testlet/java/awt/Window/security.java	2 Jun 2006 09:27:54 -0000	1.2
+++ gnu/testlet/java/awt/Window/security.java	13 Jun 2006 14:01:02 -0000
@@ -25,7 +25,6 @@
 import java.awt.AWTPermission;
 import java.awt.Frame;
 import java.awt.GraphicsConfiguration;
-import java.awt.Toolkit;
 import java.awt.Window;
 import java.security.Permission;
 
@@ -38,8 +37,6 @@
   public void test(TestHarness harness)
   {
     try {
-      Toolkit.getDefaultToolkit();
-
       Frame frame = new Frame();
       Window window = new Window(frame);
       GraphicsConfiguration gc = window.getGraphicsConfiguration();

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-13 14:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-13 14:03 FYI: Minor cleanups Gary Benson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).