Skip to content

Commit

Permalink
Use StaplerRequest2 for EE 9
Browse files Browse the repository at this point in the history
No need to rely on the compatibility layer for EE 8
  • Loading branch information
MarkEWaite committed Oct 9, 2024
1 parent 7720f48 commit 33d0163
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/hudson/plugins/git/GitTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.QueryParameter;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerRequest2;
import org.kohsuke.stapler.interceptor.RequirePOST;

/**
Expand Down Expand Up @@ -153,7 +153,7 @@ public String getDisplayName() {
}

@Override
public boolean configure(StaplerRequest req, JSONObject json) {
public boolean configure(StaplerRequest2 req, JSONObject json) {
setInstallations(req.bindJSONToList(clazz, json.get("tool")).toArray(new GitTool[0]));
save();
return true;
Expand Down

0 comments on commit 33d0163

Please sign in to comment.