Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,19 @@ public static <T extends HasMetadata> SecondaryToPrimaryMapper<T> fromOwnerRefer
clusterScoped);
}

/**
* @deprecated use {@link #fromOwnerReferences(Class)}
*/
@Deprecated(forRemoval = true)
public static <T extends HasMetadata> SecondaryToPrimaryMapper<T> fromOwnerReferences(
HasMetadata primaryResource) {
return fromOwnerReferences(primaryResource, false);
}

Comment on lines 89 to 98
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TBH, I also think that all deprecations should point to replacements or explain why the method is being dropped.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true, added javadoc to the alternative

/**
* @deprecated use {@link #fromOwnerReferences(Class,boolean)}
*/
@Deprecated(forRemoval = true)
public static <T extends HasMetadata> SecondaryToPrimaryMapper<T> fromOwnerReferences(
HasMetadata primaryResource, boolean clusterScoped) {
return fromOwnerReferences(
Expand Down
Loading