Skip to content

Commit 57545d6

Browse files
committed
Fix warning: [try] auto-closeable resource SharedObject has a member method close() that could throw InterruptedException
1 parent 8e34c1b commit 57545d6

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/copying

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/copying/SharedObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ abstract class SharedObject implements AutoCloseable {
5757

5858
abstract void write(TruffleFile copy) throws IOException, InterruptedException;
5959

60-
public abstract void close() throws IOException, InterruptedException;
60+
public abstract void close() throws IOException;
6161

6262
static SharedObject open(TruffleFile file, PythonContext context) throws IOException {
6363
var f = file.readAllBytes();

0 commit comments

Comments
 (0)