Skip to content
Snippets Groups Projects
Commit e0755a7e authored by Lukas Stadler's avatar Lukas Stadler
Browse files

hide javac warnings about unused AutoCloseable

parent dcc3e813
Branches
No related tags found
No related merge requests found
......@@ -121,6 +121,7 @@ public final class TruffleRLanguage extends TruffleLanguage<RContext> {
}
@Override
@SuppressWarnings("try")
protected CallTarget parse(Source source, Node context, String... argumentNames) throws IOException {
try (Closeable c = RContext.withinContext(findContext(createFindContextNode()))) {
try {
......
......@@ -62,6 +62,7 @@ class RInteropExecuteNode extends RootNode {
}
@Override
@SuppressWarnings("try")
public Object execute(VirtualFrame frame) {
RFunction function = (RFunction) ForeignAccess.getReceiver(frame);
List<Object> arguments = ForeignAccess.getArguments(frame);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment