[model] Remove redundant AutoCloseable interface.
This commit is contained in:
parent
730cda6426
commit
b8c86f3645
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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.
|
||||||
|
@ -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.
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user