Skip to content

Commit

Permalink
[JENKINS-73124] Remove MIME_TYPES (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored May 24, 2024
1 parent 7e19cc9 commit 84d5d81
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
7 changes: 0 additions & 7 deletions src/main/java/org/jvnet/hudson/test/HudsonTestCase.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@
import org.acegisecurity.userdetails.UsernameNotFoundException;
import org.apache.commons.beanutils.PropertyUtils;
import org.eclipse.jetty.http.HttpCompliance;
import org.eclipse.jetty.http.MimeTypes;
import org.eclipse.jetty.http.UriCompliance;
import org.eclipse.jetty.security.HashLoginService;
import org.eclipse.jetty.security.LoginService;
Expand Down Expand Up @@ -1811,13 +1810,7 @@ public boolean isLoggable(LogRecord record) {
*/
public static int SLAVE_DEBUG_PORT = Integer.getInteger(HudsonTestCase.class.getName()+".slaveDebugPort",-1);

/**
* @deprecated removed without replacement
*/
@Deprecated
public static final MimeTypes MIME_TYPES = new MimeTypes();
static {
MIME_TYPES.addMimeMapping("js","text/javascript");
Functions.DEBUG_YUI = true;

if (Functions.isGlibcSupported()) {
Expand Down
16 changes: 1 addition & 15 deletions src/main/java/org/jvnet/hudson/test/JenkinsRule.java
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,9 @@
import jenkins.security.MasterToSlaveCallable;
import net.sf.json.JSON;
import net.sf.json.JSONObject;
import org.acegisecurity.GrantedAuthorityImpl;
import org.apache.commons.beanutils.PropertyUtils;
import org.apache.commons.io.FileUtils;
import org.eclipse.jetty.http.HttpCompliance;
import org.eclipse.jetty.http.MimeTypes;
import org.eclipse.jetty.http.UriCompliance;
import org.eclipse.jetty.security.HashLoginService;
import org.eclipse.jetty.security.LoginService;
Expand Down Expand Up @@ -246,7 +244,6 @@
import org.kohsuke.stapler.Stapler;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
import org.springframework.dao.DataAccessException;
import org.springframework.security.authentication.BadCredentialsException;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.core.GrantedAuthority;
Expand Down Expand Up @@ -2981,19 +2978,8 @@ public boolean isLoggable(LogRecord record) {
*/
public static final int SLAVE_DEBUG_PORT = Integer.getInteger(HudsonTestCase.class.getName()+".slaveDebugPort",-1);

/**
* @deprecated removed without replacement
*/
@Deprecated
public static final MimeTypes MIME_TYPES;
static {
jettyLevel(Level.WARNING); // suppress Log.initialize message
try {
MIME_TYPES = new MimeTypes();
} finally {
jettyLevel(Level.INFO);
}
MIME_TYPES.addMimeMapping("js","text/javascript");
jettyLevel(Level.INFO);
Functions.DEBUG_YUI = true;

if (Functions.isGlibcSupported()) {
Expand Down

0 comments on commit 84d5d81

Please sign in to comment.