Skip to content

Commit

Permalink
Fix warnings-ng extension (#714)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioFuchsTT committed Aug 29, 2024
1 parent 3621f4a commit 155a4b7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
import io.jenkins.plugins.analysis.core.model.ResultAction;
import io.jenkins.plugins.analysis.core.steps.IssuesRecorder;
import io.jenkins.plugins.analysis.warnings.WarningsPlugin;
import io.jenkins.plugins.util.ResultHandler;
import io.jenkins.plugins.util.RunResultHandler;
import io.jenkins.plugins.util.StageResultHandler;
import org.apache.commons.lang.RandomStringUtils;

import java.io.IOException;
Expand Down Expand Up @@ -86,7 +86,7 @@ public boolean record(final Run<?, ?> run, final FilePath workspace, final Launc
final Class<? extends IssuesRecorder> clazz = recorder.getClass();
try {
final Method perform = clazz.getDeclaredMethod("perform",
Run.class, FilePath.class, TaskListener.class, StageResultHandler.class);
Run.class, FilePath.class, TaskListener.class, ResultHandler.class);
AccessController.doPrivileged((PrivilegedAction<Void>) () -> {
perform.setAccessible(true);
return null;
Expand Down

0 comments on commit 155a4b7

Please sign in to comment.