Redundant condition in java.math.MutableBigInteger#divideMagnitude

2022-11-25 Thread Andrey Turbanov
Hello. I noticed that IntelliJ IDEA show warning in the method java.math.MutableBigInteger#divideMagnitude here - https://github.com/openjdk/jdk/blob/4f65570204e2d38415e7761bd81660b081eae882/src/java.base/share/classes/java/math/MutableBigInteger.java#L1536 It seems that condition is always 'true'

Re: Redundant condition in java.math.MutableBigInteger#divideMagnitude

2022-11-28 Thread Raffaello Giulietti
I can confirm that testing that condition is indeed useless From: core-libs-dev on behalf of Andrey Turbanov Date: Friday, 2022-November-25 at 14:18 To: core-libs-dev Subject: Redundant condition in java.math.MutableBigInteger#divideMagnitude Hello. I noticed that IntelliJ IDEA show warning

Re: Redundant condition in java.math.MutableBigInteger#divideMagnitude

2022-11-28 Thread Joseph D. Darcy
*Subject: *Redundant condition in java.math.MutableBigInteger#divideMagnitude Hello. I noticed that IntelliJ IDEA show warning in the method java.math.MutableBigInteger#divideMagnitude here - https://github.com/openjdk/jdk/blob/4f65570204e2d38415e7761bd81660b081eae882/src/java.base/share