Fix Sonar findings for TmfEvent and TmfTrace
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / event / TmfEventField.java
index b76963e52c3c5b4ec63998c58ada5ad496e8eb57..615b30f850cfbc31c32a7180a0f9fa53c5933c0a 100644 (file)
@@ -143,7 +143,8 @@ public class TmfEventField implements ITmfEventField {
      */
     @Override
     public ITmfEventField[] getFields() {
-        return (fFields != null) ? Arrays.copyOf(fFields, fFields.length) : null;
+        ITmfEventField[] result = (fFields != null) ? Arrays.copyOf(fFields, fFields.length) : null;
+        return result;
     }
 
     /* (non-Javadoc)
This page took 0.023981 seconds and 5 git commands to generate.