-
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