Skip to content

Commit

Permalink
Migrate from EE 8 to EE 9 (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Jan 22, 2025
1 parent fbd950a commit 2e3c063
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import org.kohsuke.stapler.Ancestor;
import org.kohsuke.stapler.DataBoundSetter;
import org.kohsuke.stapler.Stapler;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerRequest2;

@Extension
@Symbol("themeManager")
Expand All @@ -35,7 +35,7 @@ public static ThemeManagerPageDecorator get() {
}

@Override
public boolean configure(StaplerRequest req, JSONObject formData) {
public boolean configure(StaplerRequest2 req, JSONObject formData) {
req.bindJSON(this, formData);
save();
return true;
Expand Down Expand Up @@ -143,7 +143,7 @@ public boolean isRespectSystemAppearance() {
* @return true if it is okay to inject CSS
*/
public boolean shouldInjectCss() {
StaplerRequest req = Stapler.getCurrentRequest();
StaplerRequest2 req = Stapler.getCurrentRequest2();
if (req == null) {
return false;
}
Expand Down

0 comments on commit 2e3c063

Please sign in to comment.