RFR (S) 8233650 : Javadoc for Math.floorMod(int, int) gives wrong example

Ivan Gerasimov ivan.gerasimov at oracle.com
Wed Nov 6 04:28:48 UTC 2019


Thank you Brian!

Pushed.

On 11/5/19 4:05 PM, Brian Burkhalter wrote:
> Hi Ivan,
>
> I think this looks good.
>
> Brian
>
>> On Nov 5, 2019, at 3:35 PM, Ivan Gerasimov <ivan.gerasimov at oracle.com> wrote:
>>
>> The javadoc for the method Math.floorMod(int, int) [1] contains an inaccuracy.
>>
>> There are two sets of examples given:  One for the case when signs of the arguments are the same and the other for the case when signs of the arguments are different.
>> The second set of examples wrongly contains an example from the first set.
>>
>> Would you please help review this javadoc-only fix?
>>
>> BUGURL: https://bugs.openjdk.java.net/browse/JDK-8233650
>> WEBREV: http://cr.openjdk.java.net/~igerasim/8233650/00/webrev/
>>
>> [1] https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Math.html#floorMod(int,int)

-- 
With kind regards,
Ivan Gerasimov



More information about the core-libs-dev mailing list