JDK 12 RFR of JDK-8146726 : Refactor AbstractProcessor to use Set.of and related methods
joe darcy
joe.darcy at oracle.com
Wed Nov 28 20:04:43 UTC 2018
Hi Sergey,
On 11/27/2018 1:07 PM, Sergey Bylokhov wrote:
> Hi, Joe.
>
>> Collections.emptySet() :
> Just curious why "Collections.emptySet()" is used instead of "Set.of()"
I was already using Collections.emptySet() for that case, so I just
preserved the code.
I check with Stuart and he said either of "Collections.emptySet()" is
used instead of "Set.of()" would be acceptable, but thought using
"Set.of()" would be more consistent in the situation.
I'll revised the webrev accordingly.
Thanks,
-Joe
More information about the compiler-dev
mailing list