Skip to content

Commit

Permalink
Make IChemObjectIO extend Closeable as suggested at http://sourceforg…
Browse files Browse the repository at this point in the history
…e.net/tracker/?func=detail&atid=370024&aid=3437936&group_id=20024

Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>
  • Loading branch information
rajarshi authored and egonw committed Nov 15, 2011
1 parent a7920c1 commit a250cb3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/org/openscience/cdk/io/IChemObjectIO.java
Expand Up @@ -24,14 +24,15 @@
*/
package org.openscience.cdk.io;

import java.io.IOException;

import org.openscience.cdk.annotations.TestMethod;
import org.openscience.cdk.interfaces.IChemObject;
import org.openscience.cdk.io.formats.IResourceFormat;
import org.openscience.cdk.io.listener.IChemObjectIOListener;
import org.openscience.cdk.io.setting.IOSetting;

import java.io.Closeable;
import java.io.IOException;

/**
* This class is the interface that all IO readers should implement.
* Programs need only care about this interface for any kind of IO.
Expand All @@ -47,7 +48,7 @@
*
* @author Egon Willighagen <egonw@sci.kun.nl>
**/
public interface IChemObjectIO {
public interface IChemObjectIO extends Closeable {

/**
* Returns the {@link IResourceFormat} class for this IO class.
Expand Down

0 comments on commit a250cb3

Please sign in to comment.