[Patch] cleanup over all
Michael Koch
konqueror@gmx.de
Wed Oct 20 08:10:00 GMT 2004
Hi list,
I just commited the attached patch to do little cleanups all over.
Michael
2004-10-20 Michael Koch <konqueror@gmx.de>
* java/sql/Timestamp.java,
java/text/AttributedCharacterIterator.java,
java/text/AttributedString.java,
java/util/zip/CheckedOutputStream.java,
java/util/zip/DeflaterOutputStream.java,
java/util/zip/ZipFile.java,
javax/crypto/Cipher.java,
javax/crypto/ExemptionMechanismException.java,
javax/crypto/SecretKey.java,
javax/crypto/SecretKeyFactory.java,
javax/naming/directory/ModificationItem.java,
javax/naming/directory/SearchControls.java,
javax/naming/event/NamingListener.java,
javax/naming/ldap/Control.java,
javax/naming/ldap/ExtendedResponse.java,
javax/net/ssl/SSLSocketFactory.java:
Reorganized imports and fixed copyright headers.
-------------- next part --------------
Index: java/sql/Timestamp.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/sql/Timestamp.java,v
retrieving revision 1.11
diff -u -r1.11 Timestamp.java
--- java/sql/Timestamp.java 3 Aug 2004 00:21:26 -0000 1.11
+++ java/sql/Timestamp.java 20 Oct 2004 08:09:04 -0000
@@ -1,5 +1,5 @@
/* Time.java -- Wrapper around java.util.Date
- Copyright (C) 1999, 2000, 2003 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2003, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -38,8 +38,8 @@
package java.sql;
-import java.text.ParseException;
import java.text.DecimalFormat;
+import java.text.ParseException;
import java.text.SimpleDateFormat;
/**
Index: java/text/AttributedCharacterIterator.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/text/AttributedCharacterIterator.java,v
retrieving revision 1.6
diff -u -r1.6 AttributedCharacterIterator.java
--- java/text/AttributedCharacterIterator.java 21 Apr 2004 05:25:11 -0000 1.6
+++ java/text/AttributedCharacterIterator.java 20 Oct 2004 08:09:04 -0000
@@ -38,10 +38,10 @@
package java.text;
-import java.io.Serializable;
import java.io.InvalidObjectException;
-import java.util.Set;
+import java.io.Serializable;
import java.util.Map;
+import java.util.Set;
/**
* This interface extends the <code>CharacterIterator</code> interface
Index: java/text/AttributedString.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/text/AttributedString.java,v
retrieving revision 1.6
diff -u -r1.6 AttributedString.java
--- java/text/AttributedString.java 31 Aug 2004 09:50:40 -0000 1.6
+++ java/text/AttributedString.java 20 Oct 2004 08:09:04 -0000
@@ -38,8 +38,8 @@
package java.text;
-import java.util.Arrays;
import java.util.ArrayList;
+import java.util.Arrays;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.Iterator;
Index: java/util/zip/CheckedOutputStream.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/util/zip/CheckedOutputStream.java,v
retrieving revision 1.5
diff -u -r1.5 CheckedOutputStream.java
--- java/util/zip/CheckedOutputStream.java 22 Jan 2002 22:40:41 -0000 1.5
+++ java/util/zip/CheckedOutputStream.java 20 Oct 2004 08:09:04 -0000
@@ -35,11 +35,12 @@
obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */
+
package java.util.zip;
import java.io.FilterOutputStream;
-import java.io.OutputStream;
import java.io.IOException;
+import java.io.OutputStream;
/* Written using on-line Java Platform 1.2 API Specification
* and JCL book.
Index: java/util/zip/DeflaterOutputStream.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/util/zip/DeflaterOutputStream.java,v
retrieving revision 1.12
diff -u -r1.12 DeflaterOutputStream.java
--- java/util/zip/DeflaterOutputStream.java 9 Jul 2004 15:22:18 -0000 1.12
+++ java/util/zip/DeflaterOutputStream.java 20 Oct 2004 08:09:04 -0000
@@ -35,11 +35,12 @@
obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */
+
package java.util.zip;
import java.io.FilterOutputStream;
-import java.io.OutputStream;
import java.io.IOException;
+import java.io.OutputStream;
/* Written using on-line Java Platform 1.2 API Specification
* and JCL book.
Index: java/util/zip/ZipFile.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/util/zip/ZipFile.java,v
retrieving revision 1.25
diff -u -r1.25 ZipFile.java
--- java/util/zip/ZipFile.java 17 Jun 2004 13:53:11 -0000 1.25
+++ java/util/zip/ZipFile.java 20 Oct 2004 08:09:04 -0000
@@ -35,19 +35,19 @@
obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */
+
package java.util.zip;
import java.io.BufferedInputStream;
import java.io.DataInput;
+import java.io.EOFException;
import java.io.File;
import java.io.InputStream;
import java.io.IOException;
-import java.io.EOFException;
import java.io.RandomAccessFile;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Iterator;
-import java.util.NoSuchElementException;
/**
* This class represents a Zip archive. You can ask for the contained
Index: javax/crypto/Cipher.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/crypto/Cipher.java,v
retrieving revision 1.1
diff -u -r1.1 Cipher.java
--- javax/crypto/Cipher.java 21 Sep 2004 08:33:31 -0000 1.1
+++ javax/crypto/Cipher.java 20 Oct 2004 08:09:04 -0000
@@ -51,7 +51,6 @@
import java.security.cert.X509Certificate;
import java.security.spec.AlgorithmParameterSpec;
-import java.util.Enumeration;
import java.util.StringTokenizer;
import gnu.java.security.Engine;
Index: javax/crypto/ExemptionMechanismException.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/crypto/ExemptionMechanismException.java,v
retrieving revision 1.1
diff -u -r1.1 ExemptionMechanismException.java
--- javax/crypto/ExemptionMechanismException.java 21 Sep 2004 08:33:31 -0000 1.1
+++ javax/crypto/ExemptionMechanismException.java 20 Oct 2004 08:09:04 -0000
@@ -1,25 +1,22 @@
/* ExemptionMechanismException -- An error in an exemption mechanism.
Copyright (C) 2004 Free Software Foundation, Inc.
-This file is a part of GNU Classpath.
+This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or (at
-your option) any later version.
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
-You should have received a copy of the GNU General Public License along
-with GNU Classpath; if not, write to the
-
- Free Software Foundation, Inc.,
- 59 Temple Place, Suite 330,
- Boston, MA 02111-1307
- USA
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
Linking this library statically or dynamically with other modules is
making a combined work based on this library. Thus, the terms and
@@ -29,14 +26,14 @@
As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under terms
-of your choice, provided that you also meet, for each linked independent
-module, the terms and conditions of the license of that module. An
-independent module is a module which is not derived from or based on
-this library. If you modify this library, you may extend this exception
-to your version of the library, but you are not obligated to do so. If
-you do not wish to do so, delete this exception statement from your
-version. */
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
package javax.crypto;
Index: javax/crypto/SecretKey.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/crypto/SecretKey.java,v
retrieving revision 1.1
diff -u -r1.1 SecretKey.java
--- javax/crypto/SecretKey.java 21 Sep 2004 08:33:31 -0000 1.1
+++ javax/crypto/SecretKey.java 20 Oct 2004 08:09:04 -0000
@@ -1,25 +1,22 @@
/* SecretKey.java -- A key for symmetric cryptography.
Copyright (C) 2004 Free Software Foundation, Inc.
-This file is a part of GNU Classpath.
+This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or (at
-your option) any later version.
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
-You should have received a copy of the GNU General Public License along
-with GNU Classpath; if not, write to the
-
- Free Software Foundation, Inc.,
- 59 Temple Place, Suite 330,
- Boston, MA 02111-1307
- USA
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
Linking this library statically or dynamically with other modules is
making a combined work based on this library. Thus, the terms and
@@ -29,14 +26,14 @@
As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under terms
-of your choice, provided that you also meet, for each linked independent
-module, the terms and conditions of the license of that module. An
-independent module is a module which is not derived from or based on
-this library. If you modify this library, you may extend this exception
-to your version of the library, but you are not obligated to do so. If
-you do not wish to do so, delete this exception statement from your
-version. */
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
package javax.crypto;
Index: javax/crypto/SecretKeyFactory.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/crypto/SecretKeyFactory.java,v
retrieving revision 1.1
diff -u -r1.1 SecretKeyFactory.java
--- javax/crypto/SecretKeyFactory.java 21 Sep 2004 08:33:31 -0000 1.1
+++ javax/crypto/SecretKeyFactory.java 20 Oct 2004 08:09:04 -0000
@@ -44,7 +44,6 @@
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.Provider;
-import java.security.SecureRandom;
import java.security.Security;
import java.security.spec.KeySpec;
import java.security.spec.InvalidKeySpecException;
Index: javax/naming/directory/ModificationItem.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/naming/directory/ModificationItem.java,v
retrieving revision 1.2
diff -u -r1.2 ModificationItem.java
--- javax/naming/directory/ModificationItem.java 23 Nov 2002 21:50:40 -0000 1.2
+++ javax/naming/directory/ModificationItem.java 20 Oct 2004 08:09:04 -0000
@@ -37,6 +37,7 @@
package javax.naming.directory;
+
import java.io.Serializable;
/**
Index: javax/naming/directory/SearchControls.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/naming/directory/SearchControls.java,v
retrieving revision 1.3
diff -u -r1.3 SearchControls.java
--- javax/naming/directory/SearchControls.java 20 Apr 2004 21:25:14 -0000 1.3
+++ javax/naming/directory/SearchControls.java 20 Oct 2004 08:09:04 -0000
@@ -37,6 +37,7 @@
package javax.naming.directory;
+
import java.io.Serializable;
/**
Index: javax/naming/event/NamingListener.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/naming/event/NamingListener.java,v
retrieving revision 1.3
diff -u -r1.3 NamingListener.java
--- javax/naming/event/NamingListener.java 11 Oct 2003 19:06:23 -0000 1.3
+++ javax/naming/event/NamingListener.java 20 Oct 2004 08:09:04 -0000
@@ -37,6 +37,7 @@
package javax.naming.event;
+
import java.util.EventListener;
/**
Index: javax/naming/ldap/Control.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/naming/ldap/Control.java,v
retrieving revision 1.3
diff -u -r1.3 Control.java
--- javax/naming/ldap/Control.java 11 Oct 2003 19:06:23 -0000 1.3
+++ javax/naming/ldap/Control.java 20 Oct 2004 08:09:04 -0000
@@ -37,6 +37,7 @@
package javax.naming.ldap;
+
import java.io.Serializable;
/**
Index: javax/naming/ldap/ExtendedResponse.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/naming/ldap/ExtendedResponse.java,v
retrieving revision 1.3
diff -u -r1.3 ExtendedResponse.java
--- javax/naming/ldap/ExtendedResponse.java 11 Oct 2003 19:06:23 -0000 1.3
+++ javax/naming/ldap/ExtendedResponse.java 20 Oct 2004 08:09:04 -0000
@@ -37,6 +37,7 @@
package javax.naming.ldap;
+
import java.io.Serializable;
/**
Index: javax/net/ssl/SSLSocketFactory.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/net/ssl/SSLSocketFactory.java,v
retrieving revision 1.1
diff -u -r1.1 SSLSocketFactory.java
--- javax/net/ssl/SSLSocketFactory.java 21 Sep 2004 08:33:32 -0000 1.1
+++ javax/net/ssl/SSLSocketFactory.java 20 Oct 2004 08:09:04 -0000
@@ -40,9 +40,7 @@
import java.io.IOException;
import java.net.Socket;
-import java.security.AccessController;
import java.security.KeyStore;
-import java.security.PrivilegedAction;
import java.security.Security;
import javax.net.SocketFactory;
More information about the Java-patches
mailing list