From b8c86f364576527aae0c33e8c6f065a1c195db14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Wed, 14 Jul 2021 19:01:38 +0200 Subject: [PATCH] [model] Remove redundant AutoCloseable interface. --- .../src/main/java/org/insa/graphs/model/io/BinaryReader.java | 2 +- .../src/main/java/org/insa/graphs/model/io/BinaryWriter.java | 2 +- .../src/main/java/org/insa/graphs/model/io/GraphReader.java | 2 +- .../src/main/java/org/insa/graphs/model/io/PathReader.java | 2 +- .../src/main/java/org/insa/graphs/model/io/PathWriter.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/be-graphes-model/src/main/java/org/insa/graphs/model/io/BinaryReader.java b/be-graphes-model/src/main/java/org/insa/graphs/model/io/BinaryReader.java index b73a745..3d966f1 100644 --- a/be-graphes-model/src/main/java/org/insa/graphs/model/io/BinaryReader.java +++ b/be-graphes-model/src/main/java/org/insa/graphs/model/io/BinaryReader.java @@ -7,7 +7,7 @@ import java.io.IOException; /** * 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. private final int minVersion; diff --git a/be-graphes-model/src/main/java/org/insa/graphs/model/io/BinaryWriter.java b/be-graphes-model/src/main/java/org/insa/graphs/model/io/BinaryWriter.java index 8152afe..cb69caa 100644 --- a/be-graphes-model/src/main/java/org/insa/graphs/model/io/BinaryWriter.java +++ b/be-graphes-model/src/main/java/org/insa/graphs/model/io/BinaryWriter.java @@ -7,7 +7,7 @@ import java.io.IOException; /** * Base class for writing binary file. */ -public abstract class BinaryWriter implements AutoCloseable, Closeable { +public abstract class BinaryWriter implements Closeable { // Output stream. protected final DataOutputStream dos; diff --git a/be-graphes-model/src/main/java/org/insa/graphs/model/io/GraphReader.java b/be-graphes-model/src/main/java/org/insa/graphs/model/io/GraphReader.java index 7d01fb1..e83216c 100644 --- a/be-graphes-model/src/main/java/org/insa/graphs/model/io/GraphReader.java +++ b/be-graphes-model/src/main/java/org/insa/graphs/model/io/GraphReader.java @@ -8,7 +8,7 @@ import org.insa.graphs.model.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. diff --git a/be-graphes-model/src/main/java/org/insa/graphs/model/io/PathReader.java b/be-graphes-model/src/main/java/org/insa/graphs/model/io/PathReader.java index 4d6ff7c..d8b969e 100644 --- a/be-graphes-model/src/main/java/org/insa/graphs/model/io/PathReader.java +++ b/be-graphes-model/src/main/java/org/insa/graphs/model/io/PathReader.java @@ -9,7 +9,7 @@ import org.insa.graphs.model.Path; /** * 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. diff --git a/be-graphes-model/src/main/java/org/insa/graphs/model/io/PathWriter.java b/be-graphes-model/src/main/java/org/insa/graphs/model/io/PathWriter.java index e094e8e..d431772 100644 --- a/be-graphes-model/src/main/java/org/insa/graphs/model/io/PathWriter.java +++ b/be-graphes-model/src/main/java/org/insa/graphs/model/io/PathWriter.java @@ -8,7 +8,7 @@ import org.insa.graphs.model.Path; /** * 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.