-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
api: breaking-changeIssues that require or introduce an API breaking changeIssues that require or introduce an API breaking changein: coretype: enhancement
Milestone
Description
The JobKeyGenerator<T>
interface currently uses a generic type parameter <T>
to represent the source used to generate a job key. However, in practice, the implementations and usages of this interface rely on JobParameters as the source type.
Since the generic parameter is not providing meaningful flexibility and introduces unnecessary complexity (e.g., requiring casts or wildcard types in consumers), it would be cleaner to refactor the interface to:
public interface JobKeyGenerator {
String generateKey(JobParameters source);
}
Metadata
Metadata
Assignees
Labels
api: breaking-changeIssues that require or introduce an API breaking changeIssues that require or introduce an API breaking changein: coretype: enhancement
Activity
fmbenhassine commentedon Jul 14, 2025
I agree, thank you for raising this!
This is a good candidate for a major release so I will plan it for v6.
fmbenhassine commentedon Jul 14, 2025
Resolved with #4887.