Skip to content

Commit 71c5b4e

Browse files
committed
Suppress SpotBugs false-positive warning.
1 parent d993fae commit 71c5b4e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/PosixResources.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
import java.util.SortedMap;
5858
import java.util.TreeMap;
5959

60+
import com.oracle.graal.python.util.SuppressFBWarnings;
6061
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
6162
import com.oracle.truffle.api.TruffleFile;
6263
import com.oracle.truffle.api.TruffleLanguage.Env;
@@ -141,6 +142,9 @@ public void destroy() {
141142
}
142143

143144
@Override
145+
// Can be removed once the `graalpython` suite has mxversion >= 6.27.1.
146+
// Until then, the analysis does not see an implementation with side effects.
147+
@SuppressFBWarnings(value = "RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT")
144148
public Process destroyForcibly() {
145149
for (Process child : children) {
146150
if (child != null && child != this) {

0 commit comments

Comments
 (0)