Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/main/java/de/rub/nds/scanner/core/execution/Scanner.java
Original file line number Diff line number Diff line change
Expand Up @@ -259,4 +259,10 @@ protected void registerProbeForExecution(ProbeT probe, boolean executeByDefault)
protected void registerProbeForExecution(AfterProbeT afterProbe) {
afterList.add(afterProbe);
}

@Override
public void close() throws Exception {
// No resources to close in base Scanner class
// Subclasses can override this method if they have resources to clean up
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ public void testAutoCloseable() throws Exception {
assertInstanceOf(AutoCloseable.class, scanner);

// Test close method
scanner.close();
assertDoesNotThrow(scanner::close);
}

@Test
Expand Down
Loading