ctf: java 8 compliance of javadoc
[deliverable/tracecompass.git] / org.eclipse.linuxtools.ctf.core / src / org / eclipse / linuxtools / ctf / core / trace / CTFTrace.java
index a0fc0fca513cb15d0d43dd5a0ee4c597d5083b04..7bb19730fe8c4cce8279e57f40084e4d402a2337 100644 (file)
@@ -61,7 +61,7 @@ import org.eclipse.linuxtools.internal.ctf.core.event.metadata.exceptions.ParseE
  * @author Matthew Khouzam
  * @version $Revision: 1.0 $
  */
-public class CTFTrace implements IDefinitionScope {
+public class CTFTrace implements IDefinitionScope, AutoCloseable {
 
     @SuppressWarnings("nls")
     @Override
@@ -232,9 +232,10 @@ public class CTFTrace implements IDefinitionScope {
     /**
      * Dispose the trace
      *
-     * @since 2.0
+     * @since 3.0
      */
-    public void dispose() {
+    @Override
+    public void close() {
         for (FileInputStream fis : fFileInputStreams) {
             if (fis != null) {
                 try {
@@ -244,8 +245,6 @@ public class CTFTrace implements IDefinitionScope {
                 }
             }
         }
-        // Invoke GC to release MappedByteBuffer objects (Java bug JDK-4724038)
-        System.gc();
     }
 
     // ------------------------------------------------------------------------
@@ -468,7 +467,7 @@ public class CTFTrace implements IDefinitionScope {
     /**
      * Get all the streams as an iterable.
      *
-     * @return Iterable<Stream> an iterable over streams.
+     * @return Iterable&lt;Stream&gt; an iterable over streams.
      * @since 3.0
      */
     public Iterable<Stream> getStreams() {
This page took 0.024316 seconds and 5 git commands to generate.