Inline ChangeRequestSCMHead2 interface into ChangeRequestSCMHead#444
Inline ChangeRequestSCMHead2 interface into ChangeRequestSCMHead#444das7pad wants to merge 3 commits into
Conversation
jglick
left a comment
There was a problem hiding this comment.
There are usages right in this plugin that would need to be adapted, namely
| * @since 2.2.0 | ||
| */ | ||
| // TODO once Java 8 is baseline move method to ChangeRequestSCMHead with default return value, | ||
| // TODO deprecate this interface and add @Restricted(NoExternalUse.class) (retain empty interface for binary compat) |
| @NonNull | ||
| String getOriginName(); | ||
| } | ||
| @Restricted(NoExternalUse.class) |
There was a problem hiding this comment.
Can it be DoNotUse? That way it blocks usages in this plugin too?
| @Restricted(NoExternalUse.class) | |
| @Restricted(DoNotUse.class) |
There was a problem hiding this comment.
@Restricted is inappropriate. It is simply @Deprecated.
Thanks for the pointers, that's addressed in d8d6da5. I've also switch the annotation to
👍 I've opened a PR over there: |
This PR is cleaning up the
ChangeRequestSCMHead/ChangeRequestSCMHead2interface workaround that was needed back before Java 8.Testing done
I've reviewed the usages of
ChangeRequestSCMHeadin the jenkinsci org and did not spot any instances that would not satisfy theChangeRequestSCMHead2requirement. So we could remove the default implementation as well.Submitter checklist