Skip to content

Commit

Permalink
Suppress SpotBugs warning
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Nov 29, 2023
1 parent 0c4cfdb commit 8c9072c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import com.oracle.truffle.api.dsl.GenerateInline;
import org.truffleruby.RubyContext;
import org.truffleruby.RubyLanguage;
import org.truffleruby.annotations.SuppressFBWarnings;
import org.truffleruby.collections.PEBiFunction;
import org.truffleruby.core.array.ArrayHelpers;
import org.truffleruby.core.array.ArrayUtils;
Expand Down Expand Up @@ -567,6 +568,7 @@ static boolean keyAlreadyExistsWithDifferentValue(
}

// setting a new key is more expensive
@SuppressFBWarnings("IP_PARAMETER_IS_DEAD_BUT_OVERWRITTEN")
@Specialization(guards = "keyPos < 0")
static boolean keyDoesntExist(
Node node,
Expand Down

0 comments on commit 8c9072c

Please sign in to comment.