mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-23 22:46:56 +01:00
VarInt: replace Guava Ints.checkedCast with Math.toIntExact
This commit is contained in:
parent
855b50cd63
commit
f71b085cd2
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue