mirror of
https://github.com/openRuyi-Project/gcc.git
synced 2026-06-16 00:16:04 +00:00
FileInputStream.java (FileInputStream(File)), java/io/FileOutputStream.java (FileOutputStream(File)): Removed unnecessary File.isDirectory() check.
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. From-SVN: r98607
This commit is contained in:
committed by
Michael Koch
parent
3876ed1631
commit
528e5d8bce
@@ -155,10 +155,7 @@ public class FileOutputStream extends OutputStream
|
||||
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));
|
||||
|
||||
Reference in New Issue
Block a user