Heinrich Bohne created NUMBERS-116:
--------------------------------------
Summary: Remove redundant methods in ArithmeticUtils
Key: NUMBERS-116
URL: https://issues.apache.org/jira/browse/NUMBERS-116
Project: Commons Numbers
Issue Type: Improvement
Components: core
Reporter: Heinrich Bohne
As has been
[discussed|http://mail-archives.apache.org/mod_mbox/commons-dev/201906.mbox/%3C940f9ff0-0b25-cd31-ddb3-a95ca777ba06%40gmx.at%3E]
on the developers' mailing list, the following methods from the class
{{ArithmeticUtils}} can be removed:
{{addAndCheck(int, int)}}
{{addAndCheck(long, long)}}
{{mulAndCheck(int, int)}}
{{mulAndCheck(long, long)}}
{{subAndCheck(int, int)}}
{{subAndCheck(long, long)}}
And their usages replaced with the following equivalent methods from
{{java.lang.Math}}:
{{addExact(int, int)}}
{{addExact(long, long)}}
{{multiplyExact(int, int)}}
{{multiplyExact(long, long)}}
{{subtractExact(int, int)}}
{{subtractExact(long, long)}}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)