Skip to content
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

Fixed Javadoc link #85

Merged
merged 1 commit into from
Sep 23, 2015
Merged

Fixed Javadoc link #85

merged 1 commit into from
Sep 23, 2015

Conversation

jglick
Copy link
Member

@jglick jglick commented Sep 22, 2015

Fixes links orphaned by #82. @reviewbybees

@ghost
Copy link

ghost commented Sep 22, 2015

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation.

@@ -23,7 +22,7 @@

/**
* Extension point to subscribe events from GH, which plugin interested in.
* This point should return true in {@link #isApplicable(AbstractProject)}
* This point should return true in {@link #isApplicable}
Copy link
Member

Choose a reason for hiding this comment

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

I believe this is an invalid link would refer to the non-existent field isApplicable unless something has changed?

Copy link
Member Author

Choose a reason for hiding this comment

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

isApplicable is a method, not a field.

Copy link
Member Author

Choose a reason for hiding this comment

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

Specifically javadoc:javadoc with JDK7u80 produces

 This point should return true in <a href="../../../../../org/jenkinsci/plugins/github/extension/GHEventsSubscriber.html#isApplicable(hudson.model.Job)"><code>isApplicable(hudson.model.Job&lt;?, ?&gt;)</code></a>

as expected.

Copy link
Member

Choose a reason for hiding this comment

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

That was my point - I thought you needed to add (argumentType) for links to methods.
I was mistaken.

@jtnord
Copy link
Member

jtnord commented Sep 22, 2015

🐝

@oleg-nenashev
Copy link
Member

🐝 . BTW a little 🐜 for a risk of Javadoc ambiguous method links if somebody introduces a new isApplicable() method

@jglick
Copy link
Member Author

jglick commented Sep 22, 2015

Yes, it is a risk. On the other hand there is a risk of a link breaking if someone changes the type of a parameter, as happened here. :-)

@jenkinsadmin
Copy link
Member

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

@lanwen
Copy link
Member

lanwen commented Sep 23, 2015

thx!

lanwen added a commit that referenced this pull request Sep 23, 2015
Fixed Javadoc link for isApplicable method (now consumes Job instead of AbstractProject)
@lanwen lanwen merged commit 60c896c into jenkinsci:master Sep 23, 2015
@jglick jglick deleted the isApplicable-Javadoc branch September 23, 2015 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants