[10] RFR: 8184665: Skip name and alias checks for standard Charsets
Claes Redestad
claes.redestad at oracle.com
Fri Jul 14 17:03:47 UTC 2017
Hi Roger,
On 2017-07-14 18:25, Roger Riggs wrote:
> Hi Claes,
>
> Using == with references always looks a bit suspicious in the source
> code, especially strings.
> Since the first thing in equals() is the identity check, I'd suggest
> using .equals for the comparisons.
Sure, there's no significant performance difference, even in interpreted
mode:
http://cr.openjdk.java.net/~redestad/8184665/jdk.01/
/Claes
More information about the core-libs-dev
mailing list