Close stream when reading/writing is done.
This commit is contained in:
부모
80df87ba51
커밋
94cbeef58f
2개의 변경된 파일과 3개의 추가작업 그리고 0개의 파일을 삭제
|
@ -54,6 +54,8 @@ public class BinaryPathReader extends BinaryReader implements PathReader {
|
|||
nodes.add(readNode(graph));
|
||||
}
|
||||
|
||||
this.dis.close();
|
||||
|
||||
return Path.createFastestPathFromNodes(graph, nodes);
|
||||
}
|
||||
|
||||
|
|
|
@ -48,6 +48,7 @@ public class BinaryPathWriter extends BinaryWriter implements PathWriter {
|
|||
}
|
||||
|
||||
dos.flush();
|
||||
dos.close();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
불러오는 중…
Reference in a new issue