<Swing Dev> [9] Review Request: 6832045 DefaultSynthStyle.{getStateInfo, getMatchCount) should use Integer.bitCount

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Fri Apr 8 12:01:51 UTC 2016


Hello,
Please review the small cleanup for jdk9.

The code which was copied from BigInteger.bitCnt() replaced by 
Integer.bitCount().
Note that this code is removed from BigInteger class itself and also 
replaced by Integer.bitCount [1].

The getMatchCount() method is removed, because initially(long ago) it 
was used in place which was changed in the fix. But now it is unused.

[1] http://hg.openjdk.java.net/jdk9/client/jdk/rev/8d2efec31d78

Bug: https://bugs.openjdk.java.net/browse/JDK-6832045
Webrev can be found at: http://cr.openjdk.java.net/~serb/6832045/webrev.00

-- 
Best regards, Sergey.



More information about the swing-dev mailing list