Opened 6 years ago

Last modified 6 years ago

#17440 closed enhancement

Confuisng code — at Version 1

Reported by: GerdP Owned by: team
Priority: normal Milestone: 19.03
Component: Core Version:
Keywords: Cc:

Description (last modified by Don-vip)

I see quite a few methods with a construct like this in AbstractPrimitive:

    @Override
    public long getId() {
        long id = this.id;
        return id >= 0 ? id : 0;
    }

Why isn't field id used directly?

Change History (1)

comment:1 by Don-vip, 6 years ago

Description: modified (diff)

Added in r3348. Not sure if it's really needed.

Note: See TracTickets for help on using tickets.