ctf: Make CTFTrace and its reader classes AutoCloseable
[deliverable/tracecompass.git] / org.eclipse.linuxtools.ctf.core / src / org / eclipse / linuxtools / ctf / core / trace / StreamInputPacketReader.java
index 9f25726b4fd9a46b7f82092d9ff978142c0aad3d..28d29142fca2aad004c4fed392daaadf56ce651f 100644 (file)
@@ -36,7 +36,7 @@ import org.eclipse.linuxtools.internal.ctf.core.trace.StreamInputPacketIndexEntr
  * @author Matthew Khouzam
  * @author Simon Marchi
  */
-public class StreamInputPacketReader implements IDefinitionScope {
+public class StreamInputPacketReader implements IDefinitionScope, AutoCloseable {
 
     // ------------------------------------------------------------------------
     // Attributes
@@ -144,9 +144,10 @@ public class StreamInputPacketReader implements IDefinitionScope {
     /**
      * Dispose the StreamInputPacketReader
      *
-     * @since 2.0
+     * @since 3.0
      */
-    public void dispose() {
+    @Override
+    public void close() {
         fBitBuffer.setByteBuffer(null);
     }
 
This page took 0.024069 seconds and 5 git commands to generate.