[
https://issues.apache.org/jira/browse/MATH-1492?focusedWorklogId=263110&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-263110
]
ASF GitHub Bot logged work on MATH-1492:
----------------------------------------
Author: ASF GitHub Bot
Created on: 19/Jun/19 15:31
Start Date: 19/Jun/19 15:31
Worklog Time Spent: 10m
Work Description: Schamschi commented on pull request #109: MATH-1492:
Replace usages of commons-numbers-core methods with equivalent java.lang.Math
methods
URL: https://github.com/apache/commons-math/pull/109
Replace usages of the following methods from
org.apache.commons.numbers.core.ArithmeticUtils:
addAndCheck(int, int)
addAndCheck(long, long)
mulAndCheck(int, int)
mulAndCheck(long, long)
subAndCheck(int, int)
subAndCheck(long, long)
With the following methods from java.lang.Math:
addExact(int, int)
addExact(long, long)
multiplyExact(int, int)
multiplyExact(long, long)
subtractExact(int, int)
subtractExact(long, long)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 263110)
Time Spent: 10m
Remaining Estimate: 0h
> Replace usages of commons-numbers-core methods with equivalent methods from
> java.lang.Math
> ------------------------------------------------------------------------------------------
>
> Key: MATH-1492
> URL: https://issues.apache.org/jira/browse/MATH-1492
> Project: Commons Math
> Issue Type: Task
> Reporter: Heinrich Bohne
> Priority: Minor
> Fix For: 4.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> The usages of the following methods from
> {{org.apache.commons.numbers.core.ArithmeticUtils}}:
> {{addAndCheck(int, int)}}
> {{addAndCheck(long, long)}}
> {{mulAndCheck(int, int)}}
> {{mulAndCheck(long, long)}}
> {{subAndCheck(int, int)}}
> {{subAndCheck(long, long)}}
> Can be 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)