commit | 70cf0e1afebf7a2d1b5bcec177cf17eedfe096c6 | [log] [tgz] |
---|---|---|
author | Philip Langer <planger@eclipsesource.com> | Fri May 12 15:38:49 2017 +0200 |
committer | Philip Langer <planger@eclipsesource.com> | Tue May 23 13:05:07 2017 -0400 |
tree | 1f8a788003e1d48e5f0b2c4d7eae8105b15a5ee6 | |
parent | 4f8070ea5ba00a6be98e681769976d49bf6bc31e [diff] |
Refactorings to improve performance of EqualityHelper EqualityHelper.matchValues is heavily used during comparison so it should be optimal. Therefore, this change factors out the null cases so that no null checks are needed anywhere else; such a check are cheap, compared to instanceof check so better it be checked early, just as object1 == object2 is done early. Change-Id: If62ab5b817307bd9077b324362c02323d044cdd8 Signed-off-by: Philip Langer <planger@eclipsesource.com>