Skip to content

Reduce EE 8 compatibility layer #311

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions src/main/java/jenkins/scm/api/SCMEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import io.jenkins.servlet.http.HttpServletRequestWrapper;
import jakarta.servlet.http.HttpServletRequest;
import jenkins.security.ImpersonatingScheduledExecutorService;
import jenkins.util.SystemProperties;
Expand Down Expand Up @@ -401,7 +400,7 @@ public String toString() {
* @param req the {@link HttpServletRequest} or {@code null} (this is to allow passing
* {@link Stapler#getCurrentRequest2()} without having to check for {@code null})
* @return the origin of the event or {@code null} if the {@link HttpServletRequest} is null.
* @since TODO
* @since 698.v8e3b_c788f0a_6
*/
@CheckForNull
public static String originOf(@CheckForNull HttpServletRequest req) {
Expand Down Expand Up @@ -461,16 +460,6 @@ public static String originOf(@CheckForNull HttpServletRequest req) {
return result.toString();
}

/**
* @deprecated use {@link #originOf(HttpServletRequest)}
* @since 2.0.3
*/
@CheckForNull
@Deprecated
public static String originOf(@CheckForNull javax.servlet.http.HttpServletRequest req) {
return req != null ? originOf(HttpServletRequestWrapper.toJakartaHttpServletRequest(req)) : null;
}

/**
* The type of event.
*/
Expand Down