Skip to content

Commit 93b6fcb

Browse files
committed
[GR-45631] Suppress SpotBugs false-positive warning.
PullRequest: graalpython/2839
2 parents c79e20e + 9b0cc87 commit 93b6fcb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* The Universal Permissive License (UPL), Version 1.0
@@ -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)