Skip to content

Add ProbeProgressCallback constructor overloads to Scanner base class#154

Merged
ic0ns merged 4 commits intomainfrom
add-progress-callback-constructor
Apr 27, 2026
Merged

Add ProbeProgressCallback constructor overloads to Scanner base class#154
ic0ns merged 4 commits intomainfrom
add-progress-callback-constructor

Conversation

@MFormenti
Copy link
Copy Markdown
Contributor

Add ProbeProgressCallback constructor overloads to Scanner base class

@MFormenti MFormenti marked this pull request as draft April 13, 2026 13:15
@MFormenti MFormenti marked this pull request as ready for review April 17, 2026 05:47
ic0ns and others added 2 commits April 28, 2026 00:07
Passing null to a constructor that takes a ProbeProgressCallback is a
caller error; defensively shielding against it duplicates the existing
null-coalescing in ThreadedScanJobExecutor.setProgressCallback and adds
no value. Restructure the no-arg / no-callback ctors to stand on their
own (instead of delegating through a null cast), and let the callback
ctors set the field unconditionally.

Drops testConstructorWithNullCallbackScansSuccessfully — it only existed
to verify the guard we are removing.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ic0ns ic0ns merged commit c882c50 into main Apr 27, 2026
13 checks passed
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.

2 participants