pcap: Remove AutoCloseable from PcapTrace
[deliverable/tracecompass.git] / pcap / org.eclipse.tracecompass.tmf.pcap.core.tests / src / org / eclipse / tracecompass / tmf / pcap / core / tests / event / PcapEventTest.java
index c9e80a49b3eb3ff58a656381005ea057d9273e72..2a2b3dcef3e11b4e00ab646f6877ff06bff0cd95 100644 (file)
@@ -60,10 +60,11 @@ public class PcapEventTest {
 
         PcapTestTrace trace = PcapTestTrace.MOSTLY_TCP;
         assumeTrue(trace.exists());
-        try (PcapFile pcap = new PcapFile(trace.getPath());
-                PcapTrace pcapTrace = new PcapTrace();) {
+        try (PcapFile pcap = new PcapFile(trace.getPath());) {
+            PcapTrace pcapTrace = new PcapTrace();
             pcapTrace.initTrace(null, trace.getPath().toString(), PcapEvent.class);
             fEvent = pcapTrace.parseEvent(new TmfContext(new TmfLongLocation(3), 3));
+            pcapTrace.dispose();
         }
 
         // Initialize protocol list.
This page took 0.025679 seconds and 5 git commands to generate.