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

Brian Burkhalter brian.burkhalter at oracle.com
Wed Nov 6 00:05:15 UTC 2019


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)


More information about the core-libs-dev mailing list