Skip to content

Conversation

@ic0ns
Copy link
Contributor

@ic0ns ic0ns commented Jun 30, 2025

Summary

  • Fixed static analysis issue: OBL_UNSATISFIED_OBLIGATION in Scanner.java
  • Added missing close() method implementation for AutoCloseable interface
  • Added test coverage for the Scanner class

Details

The Scanner class implements AutoCloseable but was missing the required close() method. This caused static analysis tools to report a potential resource leak warning.

The fix adds a basic close() method that can be overridden by subclasses if they have resources to clean up.

Test plan

  • Added ScannerTest class to verify the close() method works correctly
  • All existing tests pass
  • Code compiles without warnings
  • Spotless formatting applied

TLS-Attacker Developer and others added 2 commits June 30, 2025 14:13
Added missing close() method implementation to Scanner class which implements AutoCloseable.
This fixes the static analysis warning about potentially unclosed resources.

Also added ScannerTest to verify the close() method works correctly.
# Conflicts:
#	src/test/java/de/rub/nds/scanner/core/execution/ScannerTest.java
@TrueSkrillor TrueSkrillor enabled auto-merge July 2, 2025 15:02
@TrueSkrillor TrueSkrillor merged commit 01eff7c into main Jul 2, 2025
13 checks passed
@TrueSkrillor TrueSkrillor deleted the fix-obl-unsatisfied-obligation-scanner branch July 2, 2025 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants