-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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
Add new ToolDescriptor constructor so subclasses are not required to be an inner class #3220
Add new ToolDescriptor constructor so subclasses are not required to be an inner class #3220
Conversation
…arate file from their describable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@since
?
super(); | ||
} | ||
|
||
protected ToolDescriptor(Class<T> clazz) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add
/**
* @since FIXME
*/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(resolved)
@@ -54,6 +54,14 @@ | |||
|
|||
private T[] installations; | |||
|
|||
protected ToolDescriptor() { | |||
super(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or can just be omitted:
protected ToolDescriptor() {}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐝
@reviewbybees done |
super(); | ||
} | ||
|
||
protected ToolDescriptor(Class<T> clazz) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(resolved)
Allow subclasses of
ToolDescriptor
to use theDescriptor(Class<T>)
constructor so that subclasses do not have to be an inner class of theirDescribable
. Required to split outJDK$DescriptorImpl
as part of JENKINS-22367, see #3147.I am happy to create a JIRA ticket or tests if desired.
Proposed changelog entries
ToolDescriptor
so that subclasses are not required to be an inner class of theirDescribable
Submitter checklist
* Use the
Internal:
prefix if the change has no user-visible impact (API, test frameworks, etc.)Desired reviewers
@reviewbybees