RFR: JDK-8318476: Add resource consumption note to BigInteger and BigDecimal [v2]

Raffaello Giulietti rgiulietti at openjdk.org
Mon Oct 23 09:58:36 UTC 2023


On Mon, 23 Oct 2023 03:46:54 GMT, Joe Darcy <darcy at openjdk.org> wrote:

>> Add informative notes to BigInteger and BigDecimal about possible running times, etc.
>
> Joe Darcy has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Respond to review feedback.

src/java.base/share/classes/java/math/BigInteger.java line 127:

> 125:  * the input. For example, a method like {@link intValue()} would be
> 126:  * expected to run in <i>O</i>(1), that is constant time, since with
> 127:  * the current internal reprentation only a fixed-size component of

Suggestion:

 * the current internal representation only a fixed-size component of

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/16298#discussion_r1368414023


More information about the core-libs-dev mailing list