+2004-05-03 Tom Tromey <tromey@redhat.com>
+
+ * java/net/URLStreamHandler.java (toExternalForm): Removed
+ unused variables.
+ unused constructor.
+ * java/math/BigDecimal.java (divide): Removed unused variable.
+ * java/lang/Throwable.java: Cleaned up imports.
+ * java/lang/ClassLoader.java: Cleaned up imports.
+ * java/io/FilePermission.java (implies): Removed unused
+ variable.
+ * java/awt/TextComponent.java: Removed unused import.
+ * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
+ * gnu/java/util/DoubleEnumeration.java: Removed unused import.
+ * gnu/java/text/WordBreakIterator.java: Removed unused import.
+ * gnu/java/text/SentenceBreakIterator.java: Removed unused
+ import.
+ * gnu/java/text/LineBreakIterator.java: Removed unused import.
+ * gnu/java/text/CharacterBreakIterator.java: Removed
+ unused import.
+ * gnu/java/security/provider/DSAKeyPairGenerator.java:
+ Cleaned up imports.
+ * gnu/java/security/der/DERWriter.java: Cleaned up imports.
+ * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
+ unused method.
+ * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
+ * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
+ * gnu/java/io/Base64InputStream.java: Cleaned up imports.
+ * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
+ * gnu/classpath/ServiceFactory.java: Cleaned up imports.
+ (lookupProviders): Removed unused variable.
+ (loadNextServiceProvider): Likewise.
+ * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
+
2004-05-03 Michael Koch <konqueror@gmx.de>
Fixes PR libgcj/14695:
package gnu.classpath;
-import java.io.InputStream;
-import java.io.IOException;
import java.io.BufferedReader;
+import java.io.IOException;
import java.io.InputStreamReader;
-import java.io.Reader;
import java.net.URL;
import java.security.AccessControlContext;
import java.security.AccessController;
import java.util.Iterator;
import java.util.NoSuchElementException;
import java.util.logging.Level;
-import java.util.logging.Logger;
import java.util.logging.LogRecord;
+import java.util.logging.Logger;
/**
public static Iterator lookupProviders(Class spi,
ClassLoader loader)
{
- InputStream stream;
String resourceName;
Enumeration urls;
private Object loadNextServiceProvider()
{
String line;
- Class klass;
if (reader == null)
advanceReader();
WritableRaster dstOut)
{
int aX, bX, dstX, aY, bY, dstY, width, height;
- int xorPixel, transferType;
+ int xorPixel;
int[] srcLine, dstLine;
aX = src.getMinX();
package gnu.java.beans;
-import java.beans.*;
-import java.util.*;
-import gnu.java.lang.*;
-import java.lang.reflect.*;
+import java.beans.BeanDescriptor;
+import java.beans.BeanInfo;
+import java.beans.EventSetDescriptor;
+import java.beans.IndexedPropertyDescriptor;
+import java.beans.MethodDescriptor;
+import java.beans.PropertyDescriptor;
+import java.lang.reflect.Method;
+import java.util.Arrays;
+import java.util.Enumeration;
+import java.util.Hashtable;
+import java.util.Vector;
/**
** A BeanInfoEmbryo accumulates information about a Bean
package gnu.java.beans.info;
-import gnu.java.beans.*;
-import java.beans.*;
+import java.beans.IntrospectionException;
+import java.beans.PropertyDescriptor;
+import java.beans.SimpleBeanInfo;
/** BeanInfo class for java.awt.Component.
** This provides a few properties, but that's
package gnu.java.io;
import java.io.FilterInputStream;
-import java.io.InputStream;
import java.io.IOException;
-import java.io.EOFException;
+import java.io.InputStream;
/**
* A filter input stream that decodes data encoded in the Base-64
package gnu.java.nio;
+import gnu.java.nio.channels.FileChannelImpl;
+
import java.io.IOException;
import java.nio.channels.FileLock;
-import gnu.classpath.Configuration;
-import gnu.java.nio.channels.FileChannelImpl;
/**
* @author Michael Koch
package gnu.java.nio;
-import java.io.InputStream;
+import gnu.java.net.PlainSocketImpl;
+
import java.io.IOException;
+import java.io.InputStream;
import java.io.OutputStream;
-import java.net.InetAddress;
import java.net.InetSocketAddress;
-import gnu.java.net.PlainSocketImpl;
import java.net.Socket;
import java.net.SocketAddress;
import java.net.SocketTimeoutException;
import java.nio.channels.ConnectionPendingException;
import java.nio.channels.NoConnectionPendingException;
import java.nio.channels.NotYetConnectedException;
+import java.nio.channels.SelectionKey;
+import java.nio.channels.Selector;
+import java.nio.channels.SocketChannel;
import java.nio.channels.UnresolvedAddressException;
import java.nio.channels.UnsupportedAddressTypeException;
-import java.nio.channels.SocketChannel;
-import java.nio.channels.Selector;
-import java.nio.channels.SelectionKey;
import java.nio.channels.spi.SelectorProvider;
-import gnu.classpath.Configuration;
public final class SocketChannelImpl extends SocketChannel
{
}
}
- /**
- * Writes <code>c</code> to <code>out</code> in the byte order
- * specified by <code>byteOrder</code>.
- **/
- private void put (ByteBuffer out, char c)
- {
- if (byteOrder == BIG_ENDIAN)
- {
- out.put ((byte) (c >> 8));
- out.put ((byte) (c & 0xFF));
- }
- else
- {
- out.put ((byte) (c & 0xFF));
- out.put ((byte) (c >> 8));
- }
- }
-
protected void implReset ()
{
byteOrder = originalByteOrder;
package gnu.java.security.der;
+import gnu.java.security.OID;
+
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;
-
import java.math.BigInteger;
-
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.charset.Charset;
import java.nio.charset.CharsetEncoder;
-
import java.text.SimpleDateFormat;
-
-import java.util.BitSet;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import java.util.TimeZone;
-import gnu.java.security.OID;
-
/**
* Methods that allow various Java types to be written as a DER
* (Distinguished Encoding Rules) stream to the specified output stream.
package gnu.java.security.provider;
import java.math.BigInteger;
-import java.security.AlgorithmParameters;
import java.security.AlgorithmParameterGenerator;
-import java.security.KeyPairGeneratorSpi;
+import java.security.AlgorithmParameters;
+import java.security.InvalidAlgorithmParameterException;
+import java.security.InvalidParameterException;
import java.security.KeyPair;
+import java.security.KeyPairGeneratorSpi;
import java.security.SecureRandom;
-import java.security.InvalidParameterException;
-import java.security.InvalidAlgorithmParameterException;
import java.security.interfaces.DSAParams;
import java.security.spec.AlgorithmParameterSpec;
import java.security.spec.DSAParameterSpec;
import java.util.Random;
-import gnu.java.security.util.Prime;
-
public class DSAKeyPairGenerator extends KeyPairGeneratorSpi
implements java.security.interfaces.DSAKeyPairGenerator
{
package gnu.java.text;
-import java.text.BreakIterator;
import java.text.CharacterIterator;
/**
package gnu.java.text;
-import java.text.BreakIterator;
import java.text.CharacterIterator;
/**
package gnu.java.text;
-import java.text.BreakIterator;
import java.text.CharacterIterator;
/**
package gnu.java.text;
-import java.text.BreakIterator;
import java.text.CharacterIterator;
/**
package gnu.java.util;
-import java.io.*;
import java.util.Enumeration;
import java.util.NoSuchElementException;
package gnu.java.util.prefs;
import java.io.BufferedReader;
+import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
-import java.io.InputStream;
-import java.io.IOException;
import java.io.Reader;
-
-import java.util.prefs.*;
+import java.util.prefs.InvalidPreferencesFormatException;
+import java.util.prefs.Preferences;
+import java.util.prefs.PreferencesFactory;
/**
* Reads and imports preferences nodes from files.
import java.awt.event.TextEvent;
import java.awt.event.TextListener;
import java.awt.peer.TextComponentPeer;
-import java.awt.peer.ComponentPeer;
import java.io.Serializable;
import java.util.EventListener;
return false;
/* Make sure there are no subdirectories specified
underneath this one */
- String sub2 = f2.substring(sub1.length()+1);
if(f2.substring(sub1.length()+1).indexOf(File.separatorChar)
!= -1)
return false;
package java.lang;
-import java.io.InputStream;
+import gnu.java.util.DoubleEnumeration;
+import gnu.java.util.EmptyEnumeration;
+
import java.io.IOException;
-import java.lang.reflect.Constructor;
+import java.io.InputStream;
import java.net.URL;
import java.security.CodeSource;
import java.security.PermissionCollection;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
-import gnu.java.util.DoubleEnumeration;
-import gnu.java.util.EmptyEnumeration;
/**
* The ClassLoader is a way of customizing the way Java gets its classes
package java.lang;
-import java.io.Serializable;
-import java.io.PrintWriter;
import java.io.PrintStream;
-import java.io.ObjectOutputStream;
-import java.io.ObjectInputStream;
-import java.io.IOException;
-import java.io.OutputStream;
+import java.io.PrintWriter;
+import java.io.Serializable;
/**
* Throwable is the superclass of all exceptions that can be raised.
return newScale == 0 ? ZERO : new BigDecimal (ZERO.intVal, newScale);
// Ensure that pow gets a non-negative value.
- int valScale = val.scale;
BigInteger valIntVal = val.intVal;
int power = newScale - (scale - val.scale);
if (power < 0)