RFR: Here are some easy patches

Martin Buchholz martinrb at google.com
Wed May 2 18:17:19 UTC 2018


Hi Paul,

On Mon, Apr 30, 2018 at 2:03 PM, Paul Sandoz <paul.sandoz at oracle.com> wrote:

>
>
> On Apr 30, 2018, at 11:18 AM, Martin Buchholz <martinrb at google.com> wrote:
>
>
>
> On Mon, Apr 30, 2018 at 10:35 AM, Paul Sandoz <paul.sandoz at oracle.com>
> wrote:
>
>> An obvious optimization:
>>
>> 8202398: Optimize Arrays.deepHashCode
>> http://cr.openjdk.java.net/~martin/webrevs/jdk/deepHashCode-optimize/
>> https://bugs.openjdk.java.net/browse/JDK-8202398
>>
>> I would prefer that the deeply nested ternary expressions be changed to a
>> more expected if/else if/else
>>
>
> My brain much prefers code transforming tabular data to "look tabular".
>
>
>
> I think you will like expression switch :-) in the interim i would stick
> with the less eyebrow raising syntax.
>
>
I'm going to claim committer's privilege and check in with my preferred
tabular style.  You can rewrite using suburban sprawl style when us
dinosaurs from the last milllenium have gone extinct.


More information about the core-libs-dev mailing list