Skip to content

[FIXED JENKINS-38347] Use Initializer levels.#139

Merged
lanwen merged 3 commits intojenkinsci:masterfrom
KostyaSha:issue/JENKINS-38347
Sep 20, 2016
Merged

[FIXED JENKINS-38347] Use Initializer levels.#139
lanwen merged 3 commits intojenkinsci:masterfrom
KostyaSha:issue/JENKINS-38347

Conversation

@KostyaSha
Copy link
Copy Markdown
Member

@KostyaSha KostyaSha commented Sep 19, 2016

- migrator: Don't throw NPE because Descriptor wasn't ready.
- aliases: user annotation initializer.
@KostyaSha
Copy link
Copy Markdown
Member Author

KostyaSha commented Sep 19, 2016

@lanwen @atanasenko for review

* Adds alias for {@link GitHubPlugin} to simplify resulting xml
*/
public static void init() {
@Initializer(before = PLUGINS_STARTED)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

level needs to be checked

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Added workaround to ensure order

Signed-off-by: Kanstantsin Shautsou <[email protected]>
* Adds alias for {@link GitHubPlugin} to simplify resulting xml
*/
public static void init() {
// @Initializer(before = PLUGINS_STARTED)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can be removed i think

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Shows real level of this step, can move to javadoc.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I kept it just to not start thinking in future what was the right level.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

move it to javadoc plz - now it looks like a forgotten block of code

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

done

@atanasenko
Copy link
Copy Markdown

+1

@lanwen lanwen merged commit cb7525c into jenkinsci:master Sep 20, 2016
@lanwen
Copy link
Copy Markdown
Member

lanwen commented Sep 20, 2016

thanks!

@atanasenko
Copy link
Copy Markdown

Thanks guys!

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.

3 participants