Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
-
None
Description
If file.length() == 0, there is no point of doing extra work of opening and closing an input stream - we can return an empty string right away.
Same applies for FileUtils.readFileToByteArray() and FileUtils.readLines().
Attachments
Issue Links
- relates to
-
IO-453 Regression in FileUtils.readFileToString from 2.0.1
- Closed