tmf: Modernize ITmfEventField
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / event / TmfEventType.java
index 9cc400a0a952011f61727b5fb92b675536201ff1..da6a08ab621554491a0832461e5772e133613b6a 100644 (file)
@@ -13,6 +13,9 @@
 
 package org.eclipse.linuxtools.tmf.core.event;
 
+import java.util.Collection;
+import java.util.Collections;
+
 /**
  * A basic implementation of ITmfEventType.
  *
@@ -95,14 +98,12 @@ public class TmfEventType implements ITmfEventType {
         return fRootField;
     }
 
+    /**
+     * @since 3.0
+     */
     @Override
-    public String[] getFieldNames() {
-        return (fRootField != null) ? fRootField.getFieldNames() : new String[0];
-    }
-
-    @Override
-    public String getFieldName(final int index) {
-        return (fRootField != null) ? fRootField.getFieldName(index) : null;
+    public Collection<String> getFieldNames() {
+        return (fRootField != null) ? fRootField.getFieldNames() : Collections.EMPTY_SET;
     }
 
     // ------------------------------------------------------------------------
This page took 0.026769 seconds and 5 git commands to generate.