File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/main/java/org/jenkinsci/plugins/github Expand file tree Collapse file tree 1 file changed +4
-1
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 ();
@@ -41,7 +45,6 @@ public static void runMigrator() throws Exception {
4145
4246 @ Override
4347 public void start () throws Exception {
44- addXStreamAliases ();
4548 }
4649
4750 /**
You can’t perform that action at this time.
0 commit comments