Skip to content

normalize the idiom for implementing equals() #1289

@stephengold

Description

@stephengold

@pspeed42 pointed out that the normal idiom for implementing equals() would be:

if( o == null || o.getClass() != getClass() ) return false;

since .equals() should require an exact class match.

Classes to be normalized include Matrix3f and Matrix4f.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions