From 01fb6185d10749fd45980e9423656ff95bdedc27 Mon Sep 17 00:00:00 2001 From: warrenl Date: Thu, 10 Jun 1999 18:52:00 +0000 Subject: 1999-06-10 Warren Levy * java/io/FileDescriptor.java (FileDescriptor(String, int)): Throw FileNotFoundException instead of IOException. (open): ditto. * java/io/FileInputStream.java (FileInputStream): Doesn't throw IOException. * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo in static field name. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27473 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/java/io/FileInputStream.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libjava/java/io/FileInputStream.java') diff --git a/libjava/java/io/FileInputStream.java b/libjava/java/io/FileInputStream.java index 4f44dae03b7..04ad6dd78db 100644 --- a/libjava/java/io/FileInputStream.java +++ b/libjava/java/io/FileInputStream.java @@ -23,7 +23,7 @@ public class FileInputStream extends InputStream /* Contains the file descriptor for referencing the actual file. */ private FileDescriptor fd; - public FileInputStream(String name) throws FileNotFoundException, IOException + public FileInputStream(String name) throws FileNotFoundException { SecurityManager s = System.getSecurityManager(); if (s != null) @@ -31,7 +31,7 @@ public class FileInputStream extends InputStream fd = new FileDescriptor(name, FileDescriptor.READ); } - public FileInputStream(File file) throws FileNotFoundException, IOException + public FileInputStream(File file) throws FileNotFoundException { this(file.getPath()); } -- cgit v1.2.1