From 191f45af680bb3919bd3e393833076c51a8a321e Mon Sep 17 00:00:00 2001 From: Devin Nusbaum Date: Mon, 3 Jul 2023 14:37:35 -0400 Subject: [PATCH] Make ErrorAction.equals a public API --- .../org/jenkinsci/plugins/workflow/actions/ErrorAction.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/jenkinsci/plugins/workflow/actions/ErrorAction.java b/src/main/java/org/jenkinsci/plugins/workflow/actions/ErrorAction.java index bcf5ec43..a6853bff 100644 --- a/src/main/java/org/jenkinsci/plugins/workflow/actions/ErrorAction.java +++ b/src/main/java/org/jenkinsci/plugins/workflow/actions/ErrorAction.java @@ -43,6 +43,8 @@ import org.jenkinsci.plugins.workflow.graph.AtomNode; import org.jenkinsci.plugins.workflow.graph.BlockEndNode; import org.jenkinsci.plugins.workflow.graphanalysis.ForkScanner; +import org.kohsuke.accmod.Restricted; +import org.kohsuke.accmod.restrictions.Beta; /** * Attached to {@link FlowNode} that caused an error. @@ -165,7 +167,8 @@ public String getUrlName() { * {@link Throwable#equals} might not be reliable if the program has resumed * and stuff is deserialized. */ - private static boolean equals(Throwable t1, Throwable t2) { + @Restricted(Beta.class) + public static boolean equals(Throwable t1, Throwable t2) { if (t1 == t2) { return true; } else if (t1.getClass() != t2.getClass()) {