Close stream when reading/writing is done.
Este commit está contenido en:
padre
80df87ba51
commit
94cbeef58f
Se han modificado 2 ficheros con 3 adiciones y 0 borrados
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Cargando…
Referenciar en una nueva incidencia