FYI: Two tiny cleanups
Bryce McKinlay
mckinlay@redhat.com
Wed Jul 28 19:08:00 GMT 2004
I'm checking this in.
2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
* java/io/File.java (toURI): Throw RuntimeException, not
InternalError.
* java/lang/Runtime.java (exit): Qualify static sleep() call with
class name, not instance.
Index: java/lang/Runtime.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/lang/Runtime.java,v
retrieving revision 1.14
diff -u -r1.14 Runtime.java
--- java/lang/Runtime.java 20 Apr 2004 12:30:18 -0000 1.14
+++ java/lang/Runtime.java 27 Jul 2004 18:40:27 -0000
@@ -238,7 +238,7 @@
}
try
{
- exitSequence.sleep(1); // Give other threads a chance.
+ Thread.sleep(1); // Give other threads a chance.
}
catch (InterruptedException e)
{
Index: java/io/File.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/io/File.java,v
retrieving revision 1.39
diff -u -r1.39 File.java
--- java/io/File.java 6 Jul 2004 02:52:54 -0000 1.39
+++ java/io/File.java 27 Jul 2004 18:40:27 -0000
@@ -893,8 +893,7 @@
catch (URISyntaxException use)
{
// Can't happen.
- throw (InternalError) new InternalError("Unconvertible file: "
- + this).initCause(use);
+ throw new RuntimeException(use);
}
}
More information about the Java-patches
mailing list