mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Minor optimization in TypeInstantiationRequest.equals method.
Change-Id: Ie9efe4000b9354e9c2193a0f8264e771ffe8e169
This commit is contained in:
parent
4289aa7b0d
commit
c4f4122343
1 changed files with 3 additions and 1 deletions
|
@ -59,7 +59,9 @@ public class TypeInstantiationRequest {
|
|||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (!obj.getClass().equals(getClass()))
|
||||
if (this == obj)
|
||||
return true;
|
||||
if (!getClass().equals(obj.getClass()))
|
||||
return false;
|
||||
TypeInstantiationRequest other = (TypeInstantiationRequest) obj;
|
||||
if (!type.isSameType(other.type))
|
||||
|
|
Loading…
Add table
Reference in a new issue