Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Chouinard2012-03-03 16:49:16 +0000
committerFrancois Chouinard2012-03-03 16:49:16 +0000
commit3b6089dd370d017643257027f70484bfb5d736bd (patch)
tree7e18cb577ab62a77699976886c0d05c128114bff /lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/TmfEventType.java
parentc8363e15af5d2c3321c727a2cb9dbbda486c1256 (diff)
downloadorg.eclipse.linuxtools-3b6089dd370d017643257027f70484bfb5d736bd.tar.gz
org.eclipse.linuxtools-3b6089dd370d017643257027f70484bfb5d736bd.tar.xz
org.eclipse.linuxtools-3b6089dd370d017643257027f70484bfb5d736bd.zip
Improve unit tests
Diffstat (limited to 'lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/TmfEventType.java')
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/TmfEventType.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/TmfEventType.java b/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/TmfEventType.java
index 5339bc9b9b..0972d52ce1 100644
--- a/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/TmfEventType.java
+++ b/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/TmfEventType.java
@@ -62,12 +62,12 @@ public class TmfEventType implements ITmfEventType {
*
* @param type the other type
*/
- public TmfEventType(TmfEventType type) {
+ public TmfEventType(ITmfEventType type) {
if (type == null)
throw new IllegalArgumentException();
- fContext = type.fContext;
- fTypeId = type.fTypeId;
- fRootField = type.fRootField;
+ fContext = type.getContext();
+ fTypeId = type.getName();
+ fRootField = type.getRootField();
}
// ------------------------------------------------------------------------

Back to the top