Suppress the lint "WrongConstant" error

Lint somehow complains that the integer resulting from the bit-manipulation shouldn't be passed as an @IntDef parameter.

#cherrypick

PiperOrigin-RevId: 648687698
(cherry picked from commit afe3826d7c4b79acfe0fd165ac1940261a147040)
This commit is contained in:
tianyifeng 2024-07-02 05:46:31 -07:00 committed by Tianyi Feng
parent 6946f49997
commit d97ec132b9

View File

@ -533,7 +533,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
// Handler.Callback implementation.
@SuppressWarnings("unchecked") // Casting message payload types.
@SuppressWarnings({"unchecked", "WrongConstant"}) // Casting message payload types and IntDef.
@Override
public boolean handleMessage(Message msg) {
try {