* java/io/FileInputStream.java (FileInputStream(File)),
java/io/FileOutputStream.java (FileOutputStream(File)):
Removed unnecessary File.isDirectory() check.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98607
138bc75d-0d04-0410-961f-
82ee72b054a4
+2005-04-23 Jeroen Frijters <jeroen@frijters.net>
+
+ * java/io/FileInputStream.java (FileInputStream(File)),
+ java/io/FileOutputStream.java (FileOutputStream(File)):
+ Removed unnecessary File.isDirectory() check.
+
2005-04-22 Bryce McKinlay <mckinlay@redhat.com>
* testsuite/lib/libjava.exp (libjava_find_gij): Use $objdir/.. to find
if (s != null)
s.checkRead(file.getPath());
- if (file.isDirectory())
- throw new FileNotFoundException(file.getPath() + " is a directory");
-
ch = new FileChannelImpl (file.getPath(), FileChannelImpl.READ);
}
if (s != null)
s.checkWrite(file.getPath());
- if (file.isDirectory())
- throw new FileNotFoundException(file.getPath() + " is a directory");
-
- ch = new FileChannelImpl (file.getPath(), (append
+ ch = new FileChannelImpl (file.getPath(), (append
? FileChannelImpl.WRITE
| FileChannelImpl.APPEND
: FileChannelImpl.WRITE));