Skip to content

Commit

Permalink
Implement AutoCloseable in class AS400File
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Gorzinski <17914061+ThePrez@users.noreply.github.com>
  • Loading branch information
ThePrez committed Apr 29, 2023
1 parent d0acdc2 commit 9ac5a90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/ibm/as400/access/AS400File.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
*@see AS400FileRecordDescription
*@see MemberList
**/
abstract public class AS400File implements Serializable
abstract public class AS400File implements Serializable, AutoCloseable
{
private static final String CLASSNAME = "com.ibm.as400.access.AS400File";
static
Expand Down Expand Up @@ -462,6 +462,7 @@ synchronized void chooseImpl() throws AS400SecurityException, IOException
*@exception IOException If an error occurs while communicating with the
*system.
**/
@Override
public synchronized void close()
throws AS400Exception,
AS400SecurityException,
Expand Down

0 comments on commit 9ac5a90

Please sign in to comment.