Skip to content

Refactor convertToResult method to use Java 17+ pattern matching #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 11, 2025

Conversation

ic0ns
Copy link
Contributor

@ic0ns ic0ns commented Jun 11, 2025

Summary

  • Refactored the convertToResult method in ScannerProbe to use Java 17+ pattern matching
  • Replaced traditional instanceof checks with modern switch expressions
  • Improved code readability and maintainability

Fixes #86

ic0ns added 2 commits June 11, 2025 10:23
Updated the convertToResult method in ScannerProbe to use modern switch expressions
with pattern matching instead of traditional instanceof checks. This improves code
readability and leverages Java 17+ language features.

Fixes #86
@ic0ns
Copy link
Contributor Author

ic0ns commented Jun 11, 2025

looks good - can be merged once CI passes

@ic0ns ic0ns merged commit d3ae6e6 into main Jun 11, 2025
12 checks passed
@ic0ns ic0ns deleted the fix/issue-86-pattern-matching branch June 11, 2025 09:24
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.

Update convertToResult method to use pattern matching with Java 17+
1 participant