Re: RFR: JDK-8297731: Remove redundant check in MutableBigInteger.divide [v2]

2022-11-30 Thread Raffaello Giulietti
On Tue, 29 Nov 2022 20:35:00 GMT, Joe Darcy wrote: >> Remove redundant code reported in >> >> https://mail.openjdk.org/pipermail/core-libs-dev/2022-November/097163.html > > Joe Darcy has updated the pull request incrementally with one additional > commit since the last revision: > > Remove w

Re: RFR: JDK-8297731: Remove redundant check in MutableBigInteger.divide [v2]

2022-11-29 Thread Joe Darcy
> Remove redundant code reported in > > https://mail.openjdk.org/pipermail/core-libs-dev/2022-November/097163.html Joe Darcy has updated the pull request incrementally with one additional commit since the last revision: Remove whitespace. - Changes: - all: https://git.openjdk.

Re: RFR: JDK-8297731: Remove redundant check in MutableBigInteger.divide

2022-11-29 Thread Joe Darcy
On Tue, 29 Nov 2022 07:39:59 GMT, Andrey Turbanov wrote: > IDEA now highlights unnecessary `rem.offset=1` assignments, which are above > modified code. Now we always overwrite it with `0` anyway. > > https://github.com/openjdk/jdk/blob/6f06f440bcf8a5db379b80e8765af38a15449356/src/java.base/shar

Re: RFR: JDK-8297731: Remove redundant check in MutableBigInteger.divide

2022-11-28 Thread Andrey Turbanov
On Mon, 28 Nov 2022 18:58:29 GMT, Joe Darcy wrote: > Remove redundant code reported in > > https://mail.openjdk.org/pipermail/core-libs-dev/2022-November/097163.html IDEA now highlights unnecessary `rem.offset=1` assignments, which are above modified code. Now we always overwrite it with `0` a

Re: RFR: JDK-8297731: Remove redundant check in MutableBigInteger.divide

2022-11-28 Thread Sergey Bylokhov
On Mon, 28 Nov 2022 19:56:23 GMT, Sergey Bylokhov wrote: >> src/java.base/share/classes/java/math/MutableBigInteger.java line 1536: >> >>> 1534: >>> 1535: // Must insert leading 0 in rem if its length did not change >>> 1536: if (rem.intLen == nlen) { >> >> Looks like after thi

Re: RFR: JDK-8297731: Remove redundant check in MutableBigInteger.divide

2022-11-28 Thread Sergey Bylokhov
On Mon, 28 Nov 2022 19:49:55 GMT, Sergey Bylokhov wrote: >> Remove redundant code reported in >> >> https://mail.openjdk.org/pipermail/core-libs-dev/2022-November/097163.html > > src/java.base/share/classes/java/math/MutableBigInteger.java line 1536: > >> 1534: >> 1535: // Must insert

Re: RFR: JDK-8297731: Remove redundant check in MutableBigInteger.divide

2022-11-28 Thread Sergey Bylokhov
On Mon, 28 Nov 2022 18:58:29 GMT, Joe Darcy wrote: > Remove redundant code reported in > > https://mail.openjdk.org/pipermail/core-libs-dev/2022-November/097163.html src/java.base/share/classes/java/math/MutableBigInteger.java line 1536: > 1534: > 1535: // Must insert leading 0 in rem

Re: RFR: JDK-8297731: Remove redundant check in MutableBigInteger.divide

2022-11-28 Thread Brian Burkhalter
On Mon, 28 Nov 2022 18:58:29 GMT, Joe Darcy wrote: > Remove redundant code reported in > > https://mail.openjdk.org/pipermail/core-libs-dev/2022-November/097163.html Marked as reviewed by bpb (Reviewer). - PR: https://git.openjdk.org/jdk/pull/11395

RFR: JDK-8297731: Remove redundant check in MutableBigInteger.divide

2022-11-28 Thread Joe Darcy
Remove redundant code reported in https://mail.openjdk.org/pipermail/core-libs-dev/2022-November/097163.html - Commit messages: - JDK-8297731: Remove redundant check in MutableBigInteger.divide Changes: https://git.openjdk.org/jdk/pull/11395/files Webrev: https://webrevs.openjdk.o