Skip to content

Commit b4476a0

Browse files
committed
spotbugs doesn't understand that call will raise here
1 parent 2c9f5fb commit b4476a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/SysModuleBuiltins.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,9 @@ Object counted(int num) {
329329
}
330330
int actual = num + 1; // skip dummy frame
331331
try {
332-
call.call(new Object[0]);
332+
@SuppressWarnings("unused")
333+
Object r = call.call(new Object[0]);
334+
// r is just assigned to make spotbugs happy
333335
throw raise(PythonErrorType.SystemError, "should not reach here");
334336
} catch (PException e) {
335337
PBaseException exception = e.getExceptionObject();

0 commit comments

Comments
 (0)