diff options
author | PJ Fanning <fanningpj@apache.org> | 2022-01-17 00:58:27 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2022-01-17 00:58:27 +0000 |
commit | f2d37da8fc4ca456d0794c3a97144b461378917a (patch) | |
tree | ad9fac6e9fa1b290fd9d22e0957910e2f899535b /poi-scratchpad | |
parent | a729b3c7e84a84be88ef0cc3550a32e31a96d3b1 (diff) | |
download | poi-f2d37da8fc4ca456d0794c3a97144b461378917a.tar.gz poi-f2d37da8fc4ca456d0794c3a97144b461378917a.zip |
remove use of deprecated commons-math methods
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1897138 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-scratchpad')
-rw-r--r-- | poi-scratchpad/src/main/java/org/apache/poi/hslf/record/MasterTextPropAtom.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/MasterTextPropAtom.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/MasterTextPropAtom.java index 1b96b35260..a6065e3e24 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/MasterTextPropAtom.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/MasterTextPropAtom.java @@ -26,7 +26,6 @@ import java.util.List; import java.util.Map; import java.util.function.Supplier; -import org.apache.commons.math3.util.ArithmeticUtils; import org.apache.poi.hslf.model.textproperties.IndentProp; import org.apache.poi.util.GenericRecordUtil; import org.apache.poi.util.IOUtils; @@ -132,7 +131,7 @@ public final class MasterTextPropAtom extends RecordAtom { */ private void write() { int pos = 0; - long newSize = ArithmeticUtils.mulAndCheck((long)indents.size(), (long)6); + long newSize = Math.multiplyExact((long)indents.size(), (long)6); _data = IOUtils.safelyAllocate(newSize, MAX_RECORD_LENGTH); for (IndentProp prop : indents) { LittleEndian.putInt(_data, pos, prop.getCharactersCovered()); |