Skip to content
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

Remove pointless generics from PeakDetector #2020

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Mailaender
Copy link
Contributor

@Mailaender Mailaender commented Jan 13, 2025

as it seems to be applied incorrectly here. IProcessingInfo has no result other than messages for this class, so there is no point in connecting it to the PeakDetector classes. It only leads to result types like PeakDetectorCSD<?, ?, ?> with three unbounded wildcards, which doesn't help with type safety in any way. I find it verbose and hard to read. The BasePeakDetector already solves the problem with inheritance and the CSD/MSD/WSD suffix with casting to the correct type/interface.

@Mailaender Mailaender force-pushed the ungeneric-peakdetector branch from 2d7923f to 67f3b0c Compare January 13, 2025 14:56
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.

1 participant