feat(scan): propagate ScanResult to `ModuleInfo` and `PackageInfo` annotations by aurimasniekis · Pull Request #919 · classgraph/classgraph

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@aurimasniekis

Copy link

Contributor

Introduce setScanResult methods in ModuleInfo and PackageInfo to assign ScanResult context to their associated annotations. This enables annotations to access scanning metadata when class info is enabled. Called from ScanResult during post-processing.

Introduce setScanResult methods in ModuleInfo and PackageInfo to assign ScanResult
context to their associated annotations. This enables annotations to access
scanning metadata when class info is enabled. Called from ScanResult during post-processing.

@lukehutch

Copy link

Member

Thanks, good catch! This looks right to me.

@lukehutch lukehutch merged commit b42e9b8 into classgraph:latest

Oct 10, 2025

1 check passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@aurimasniekis @lukehutch