Skip to content

Commit 01eff7c

Browse files
authored
Merge pull request #135 from tls-attacker/fix-obl-unsatisfied-obligation-scanner
Fix OBL_UNSATISFIED_OBLIGATION in Scanner class
2 parents 9c438a7 + cc988e0 commit 01eff7c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/main/java/de/rub/nds/scanner/core/execution/Scanner.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,4 +259,10 @@ protected void registerProbeForExecution(ProbeT probe, boolean executeByDefault)
259259
protected void registerProbeForExecution(AfterProbeT afterProbe) {
260260
afterList.add(afterProbe);
261261
}
262+
263+
@Override
264+
public void close() throws Exception {
265+
// No resources to close in base Scanner class
266+
// Subclasses can override this method if they have resources to clean up
267+
}
262268
}

src/test/java/de/rub/nds/scanner/core/execution/ScannerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ public void testAutoCloseable() throws Exception {
399399
assertInstanceOf(AutoCloseable.class, scanner);
400400

401401
// Test close method
402-
scanner.close();
402+
assertDoesNotThrow(scanner::close);
403403
}
404404

405405
@Test

0 commit comments

Comments
 (0)