File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/main/java/org/jenkinsci/plugins/github Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 77import org .jenkinsci .plugins .github .migration .Migrator ;
88
99import edu .umd .cs .findbugs .annotations .NonNull ;
10+ import org .kohsuke .accmod .Restricted ;
11+ import org .kohsuke .accmod .restrictions .DoNotUse ;
1012
1113import static org .apache .commons .lang3 .ObjectUtils .defaultIfNull ;
1214
@@ -23,6 +25,8 @@ public class GitHubPlugin extends Plugin {
2325 * Launched before plugin starts
2426 * Adds alias for {@link GitHubPlugin} to simplify resulting xml.
2527 */
28+ @ Initializer (before = InitMilestone .SYSTEM_CONFIG_LOADED )
29+ @ Restricted (DoNotUse .class )
2630 public static void addXStreamAliases () {
2731 Migrator .enableCompatibilityAliases ();
2832 Migrator .enableAliases ();
@@ -39,11 +43,6 @@ public static void runMigrator() throws Exception {
3943 new Migrator ().migrate ();
4044 }
4145
42- @ Override
43- public void start () throws Exception {
44- addXStreamAliases ();
45- }
46-
4746 /**
4847 * Shortcut method for getting instance of {@link GitHubPluginConfig}.
4948 *
You can’t perform that action at this time.
0 commit comments