VarInt: replace Guava Ints.checkedCast with Math.toIntExact

This commit is contained in:
Sean Gilligan 2023-02-28 16:43:39 -08:00 committed by Andreas Schildbach
parent 855b50cd63
commit f71b085cd2

View file

@ -17,7 +17,6 @@
package org.bitcoinj.base;
import com.google.common.primitives.Ints;
import org.bitcoinj.base.utils.ByteUtils;
/**
@ -65,7 +64,7 @@ public class VarInt {
}
public int intValue() {
return Ints.checkedCast(value);
return Math.toIntExact(value);
}
/**