Menu

#1536 CountUpDownLatch.java: String.format typo $d -> %d

version 2.4.x
open-fixed
None
1
2019-06-04
2019-01-25
No

https://sourceforge.net/p/hsqldb/svn/HEAD/tree/base/trunk/src/org/hsqldb/lib/CountUpDownLatch.java

$d should be %d

throw new ArithmeticException(
                        String.format("integer overflow: %d + $d", c, amount));

Should be

throw new ArithmeticException(
                        String.format("integer overflow: %d + %dd", c, amount));

Discussion

  • Kurt Schwehr

    Kurt Schwehr - 2019-01-25

    Bugger... typoed the should be:

    throw new ArithmeticException(
                            String.format("integer overflow: %d + %d", c, amount));
    

    -kurt
    Engineer at Google

     
  • Fred Toussi

    Fred Toussi - 2019-01-26

    Thanks for reporting. I have simply removed the second params and its placeholder. Committing now to SVN /branches/dev-three

     
    👍
    1
  • Fred Toussi

    Fred Toussi - 2019-01-26
    • status: open --> open-fixed
    • assigned_to: Fred Toussi
    • Priority: 5 --> 1
     

Log in to post a comment.

MongoDB Logo MongoDB