From caae2c8ac74ea0bbdf9787a480661cd2f81f8261 Mon Sep 17 00:00:00 2001 From: Allan Burdajewicz Date: Mon, 16 Sep 2024 14:32:09 +1000 Subject: [PATCH] Make GitHubAppCredentials#writeReplace protected for subclasses --- .../plugins/github_branch_source/GitHubAppCredentials.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubAppCredentials.java b/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubAppCredentials.java index c24024c00..0c2927aa2 100644 --- a/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubAppCredentials.java +++ b/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubAppCredentials.java @@ -498,7 +498,7 @@ long getTokenStaleEpochSeconds() { *
  • The agent need not be able to contact GitHub. * */ - private Object writeReplace() { + protected Object writeReplace() { if ( /* XStream */ Channel.current() == null) { return this;