Skip to content

Commit

Permalink
Merge pull request #289 from dwnusbaum/erroraction-equals
Browse files Browse the repository at this point in the history
Make ErrorAction.equals a public API
  • Loading branch information
jglick committed Jul 6, 2023
2 parents 7b1fdfe + 191f45a commit 41b0279
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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()) {
Expand Down

0 comments on commit 41b0279

Please sign in to comment.