Elements of different types but with equal path should not be considered
equal. This avoids clashes between trace names and 'virtual' resource
name used by some elements, such as module id for an analysis element.
Change-Id: Id2238a9e8fe4ba9b8daede86b3a2b54d0de3b815
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/71628
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@efficios.com>
/*******************************************************************************
- * Copyright (c) 2010, 2014 Ericsson
+ * Copyright (c) 2010, 2016 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
if (other == null) {
return false;
}
- if (!(other instanceof TmfProjectModelElement)) {
+ if (!(other.getClass().equals(this.getClass()))) {
return false;
}
TmfProjectModelElement element = (TmfProjectModelElement) other;