hg: lambda/lambda/jdk: Renamings and reorganizations, mostly away from .primitive package into desired target locations
Paul Sandoz
paul.sandoz at oracle.com
Fri Dec 28 14:50:42 PST 2012
On Dec 28, 2012, at 11:26 PM, Brian Goetz <brian.goetz at Oracle.COM> wrote:
> Thanks -- indeed a cut and paste bug.
>
Fixed, thanks for reporting.
Paul.
> On 12/28/2012 5:22 PM, Peter Levart wrote:
>> Hi Brian,
>>
>> I think that the non-null check in 3 primitive variants of Optional is
>> unnecessary (copy-paste bug?). For example:
>>
>> private final boolean isPresent;
>> private final long value;
>>
>> private OptionalLong(long value) {
>> this.isPresent = true;
>> this.value = Objects.requireNonNull(value);
>> }
>>
>>
>> Regards, Peter
More information about the lambda-dev
mailing list