Fix length evaluation with the last line separator.
This commit is contained in:
parent
0a0f6cd746
commit
c4777e50b1
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ public class ToolBox
|
||||||
|
|
||||||
boolean ended = false;
|
boolean ended = false;
|
||||||
final String LINE_SEPARATOR = System.getProperty("line.separator");
|
final String LINE_SEPARATOR = System.getProperty("line.separator");
|
||||||
result = new StringBuffer((int) file.length());
|
result = new StringBuffer((int) file.length() + 1);
|
||||||
while (!ended)
|
while (!ended)
|
||||||
{
|
{
|
||||||
String line = in.readLine();
|
String line = in.readLine();
|
||||||
|
|
Loading…
Reference in a new issue