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

Ivan Gerasimov ivan.gerasimov at oracle.com
Tue Nov 5 23:35:20 UTC 2019


Hello!

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