tmf: Fix TmfProjectModelElement.equals()
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.ui / src / org / eclipse / tracecompass / tmf / ui / project / model / TmfProjectModelElement.java
index 62a42ccae30285adce49c0398c3be0b9aa4283fc..b87817159eb942cc01c2db00e9e611d9ceeb6863 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * 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
@@ -186,7 +186,7 @@ public abstract class TmfProjectModelElement implements ITmfProjectModelElement
         if (other == null) {
             return false;
         }
-        if (!(other instanceof TmfProjectModelElement)) {
+        if (!(other.getClass().equals(this.getClass()))) {
             return false;
         }
         TmfProjectModelElement element = (TmfProjectModelElement) other;
This page took 0.046428 seconds and 5 git commands to generate.