[model] Remove redundant AutoCloseable interface.

This commit is contained in:
Mikaël Capelle 2021-07-14 19:01:38 +02:00 committed by Mikael CAPELLE
parent 730cda6426
commit b8c86f3645
5 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,7 @@ import java.io.IOException;
/** /**
* Base class for writing binary file. * Base class for writing binary file.
*/ */
public abstract class BinaryReader implements AutoCloseable, Closeable { public abstract class BinaryReader implements Closeable {
// Map version and magic number targeted for this reader. // Map version and magic number targeted for this reader.
private final int minVersion; private final int minVersion;

View File

@ -7,7 +7,7 @@ import java.io.IOException;
/** /**
* Base class for writing binary file. * Base class for writing binary file.
*/ */
public abstract class BinaryWriter implements AutoCloseable, Closeable { public abstract class BinaryWriter implements Closeable {
// Output stream. // Output stream.
protected final DataOutputStream dos; protected final DataOutputStream dos;

View File

@ -8,7 +8,7 @@ import org.insa.graphs.model.Graph;
/** /**
* Base interface for classes that can read graph. * Base interface for classes that can read graph.
*/ */
public interface GraphReader extends AutoCloseable, Closeable { public interface GraphReader extends Closeable {
/** /**
* Add a new observer to this graph reader. * Add a new observer to this graph reader.

View File

@ -9,7 +9,7 @@ import org.insa.graphs.model.Path;
/** /**
* Base interface that should be implemented by class used to read paths. * Base interface that should be implemented by class used to read paths.
*/ */
public interface PathReader extends AutoCloseable, Closeable { public interface PathReader extends Closeable {
/** /**
* Read a path of the given graph and returns it. * Read a path of the given graph and returns it.

View File

@ -8,7 +8,7 @@ import org.insa.graphs.model.Path;
/** /**
* Base interface that should be implemented by class used to write paths. * Base interface that should be implemented by class used to write paths.
*/ */
public interface PathWriter extends AutoCloseable, Closeable { public interface PathWriter extends Closeable {
/** /**
* Write the given path. * Write the given path.