From f2d37da8fc4ca456d0794c3a97144b461378917a Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Mon, 17 Jan 2022 00:58:27 +0000 Subject: remove use of deprecated commons-math methods git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1897138 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/poi/hslf/record/MasterTextPropAtom.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'poi-scratchpad') 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()); -- cgit v1.2.3