File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/main/java/org/jenkinsci/plugins/github_branch_source Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 2121import hudson .util .ListBoxModel ;
2222import hudson .util .Secret ;
2323import java .io .IOException ;
24+ import java .io .Serial ;
2425import java .io .Serializable ;
2526import java .security .GeneralSecurityException ;
2627import java .time .Duration ;
@@ -596,13 +597,16 @@ long getTokenStaleEpochSeconds() {
596597 }
597598 }
598599
599- private Object readResolve () {
600+ @ Serial
601+ Object readResolve () {
600602 cachedCredentials = new ConcurrentHashMap <>();
601- if (repositoryAccessStrategy == null || defaultPermissionsStrategy == null ) {
603+ if (repositoryAccessStrategy == null ) {
602604 setRepositoryAccessStrategy (new AccessSpecifiedRepositories (owner , List .of ()));
603- setDefaultPermissionsStrategy (DefaultPermissionsStrategy .INHERIT_ALL );
604605 MigrationAdminMonitor .addMigratedCredentialId (getId ());
605606 }
607+ if (defaultPermissionsStrategy == null ) {
608+ setDefaultPermissionsStrategy (DefaultPermissionsStrategy .INHERIT_ALL );
609+ }
606610 owner = null ;
607611 context = new GitHubAppUsageContext ();
608612 return this ;
You can’t perform that action at this time.
0 commit comments