[Patch][gui] import statement cleanup

Michael Koch konqueror@gmx.de
Tue Jan 11 09:54:00 GMT 2005


Hi list,


I commited the attached patch to cleanup our import statements a bit.


Michael


2005-01-11  Michael Koch  <konqueror@gmx.de>

	* java/awt/Robot.java,
	java/awt/Scrollbar.java,
	java/awt/print/PrinterJob.java,
	javax/swing/JTable.java,
	javax/swing/text/AbstractDocument.java:
	Reworked import statements.

-------------- next part --------------
Index: java/awt/Robot.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/Robot.java,v
retrieving revision 1.4
diff -u -r1.4 Robot.java
--- java/awt/Robot.java	3 Jan 2005 12:20:54 -0000	1.4
+++ java/awt/Robot.java	11 Jan 2005 09:49:46 -0000
@@ -1,5 +1,5 @@
 /* Robot.java -- a native input event generator
-   Copyright (C) 2004 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -38,10 +38,11 @@
 
 package java.awt;
 
+import gnu.java.awt.ClasspathToolkit;
+
 import java.awt.event.InputEvent;
 import java.awt.image.BufferedImage;
 import java.awt.peer.RobotPeer;
-import gnu.java.awt.ClasspathToolkit;
 
 /**
  * The Robot class is used to simulate user interaction with graphical
Index: java/awt/Scrollbar.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/Scrollbar.java,v
retrieving revision 1.23
diff -u -r1.23 Scrollbar.java
--- java/awt/Scrollbar.java	30 Dec 2004 19:02:06 -0000	1.23
+++ java/awt/Scrollbar.java	11 Jan 2005 09:49:46 -0000
@@ -1,5 +1,5 @@
 /* Scrollbar.java -- AWT Scrollbar widget
-   Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
+   Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
    Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
@@ -46,7 +46,6 @@
 
 import javax.accessibility.Accessible;
 import javax.accessibility.AccessibleContext;
-import javax.accessibility.AccessibleRelation;
 import javax.accessibility.AccessibleRole;
 import javax.accessibility.AccessibleState;
 import javax.accessibility.AccessibleStateSet;
Index: java/awt/print/PrinterJob.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/print/PrinterJob.java,v
retrieving revision 1.9
diff -u -r1.9 PrinterJob.java
--- java/awt/print/PrinterJob.java	17 Nov 2004 14:42:03 -0000	1.9
+++ java/awt/print/PrinterJob.java	11 Jan 2005 09:49:46 -0000
@@ -1,5 +1,5 @@
 /* PrinterJob.java -- This job is the printer control class
-   Copyright (C) 1999, 2004  Free Software Foundation, Inc.
+   Copyright (C) 1999, 2004, 2005  Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -38,10 +38,7 @@
 
 package java.awt.print;
 
-import javax.print.DocFlavor;
 import javax.print.PrintService;
-import javax.print.PrintServiceLookup;
-//import javax.print.StreamPrintServiceFactory;
 import javax.print.attribute.PrintRequestAttributeSet;
 
 /**
@@ -61,7 +58,7 @@
    */
   public static PrinterJob getPrinterJob()
   {
-  // FIXME: Need to fix this to load a default implementation instance.
+    // FIXME: Need to fix this to load a default implementation instance.
     return null;
   }
 
Index: javax/swing/JTable.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/JTable.java,v
retrieving revision 1.21
diff -u -r1.21 JTable.java
--- javax/swing/JTable.java	7 Jan 2005 18:32:48 -0000	1.21
+++ javax/swing/JTable.java	11 Jan 2005 09:49:46 -0000
@@ -1,5 +1,5 @@
 /* JTable.java -- 
-   Copyright (C) 2002, 2004  Free Software Foundation, Inc.
+   Copyright (C) 2002, 2004, 2005  Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -41,8 +41,8 @@
 import java.awt.Color;
 import java.awt.Component;
 import java.awt.Dimension;
-import java.awt.Rectangle;
 import java.awt.Point;
+import java.awt.Rectangle;
 import java.util.Hashtable;
 import java.util.Vector;
 
Index: javax/swing/text/AbstractDocument.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/text/AbstractDocument.java,v
retrieving revision 1.14
diff -u -r1.14 AbstractDocument.java
--- javax/swing/text/AbstractDocument.java	3 Jan 2005 16:41:52 -0000	1.14
+++ javax/swing/text/AbstractDocument.java	11 Jan 2005 09:49:46 -0000
@@ -1,5 +1,5 @@
 /* AbstractDocument.java --
-   Copyright (C) 2002, 2004 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2004, 2005  Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -40,7 +40,6 @@
 
 import java.io.PrintStream;
 import java.io.Serializable;
-import java.util.Collections;
 import java.util.Dictionary;
 import java.util.Enumeration;
 import java.util.EventListener;


More information about the Java-patches mailing list