Fix [cast] compiler warnings
This commit is contained in:
committed by
Chris Beams
parent
b0986049a3
commit
6c14eaad61
@@ -129,7 +129,7 @@ public class MappingJackson2HttpMessageConverter extends AbstractHttpMessageConv
|
||||
|
||||
@Override
|
||||
public boolean canRead(Class<?> clazz, MediaType mediaType) {
|
||||
return canRead((Type) clazz, null, mediaType);
|
||||
return canRead(clazz, null, mediaType);
|
||||
}
|
||||
|
||||
public boolean canRead(Type type, Class<?> contextClass, MediaType mediaType) {
|
||||
|
||||
@@ -127,7 +127,7 @@ public class MappingJacksonHttpMessageConverter extends AbstractHttpMessageConve
|
||||
|
||||
@Override
|
||||
public boolean canRead(Class<?> clazz, MediaType mediaType) {
|
||||
return canRead((Type) clazz, null, mediaType);
|
||||
return canRead(clazz, null, mediaType);
|
||||
}
|
||||
|
||||
public boolean canRead(Type type, Class<?> contextClass, MediaType mediaType) {
|
||||
|
||||
@@ -48,7 +48,7 @@ public class UnsatisfiedServletRequestParameterException extends ServletRequestB
|
||||
public UnsatisfiedServletRequestParameterException(String[] paramConditions, Map actualParams) {
|
||||
super("");
|
||||
this.paramConditions = paramConditions;
|
||||
this.actualParams = (Map<String, String[]>) actualParams;
|
||||
this.actualParams = actualParams;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ public class HttpRequestHandlerServlet extends HttpServlet {
|
||||
@Override
|
||||
public void init() throws ServletException {
|
||||
WebApplicationContext wac = WebApplicationContextUtils.getRequiredWebApplicationContext(getServletContext());
|
||||
this.target = (HttpRequestHandler) wac.getBean(getServletName(), HttpRequestHandler.class);
|
||||
this.target = wac.getBean(getServletName(), HttpRequestHandler.class);
|
||||
}
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ public class HttpRequestHandlerServlet extends HttpServlet {
|
||||
this.target.handleRequest(request, response);
|
||||
}
|
||||
catch (HttpRequestMethodNotSupportedException ex) {
|
||||
String[] supportedMethods = ((HttpRequestMethodNotSupportedException) ex).getSupportedMethods();
|
||||
String[] supportedMethods = ex.getSupportedMethods();
|
||||
if (supportedMethods != null) {
|
||||
response.setHeader("Allow", StringUtils.arrayToDelimitedString(supportedMethods, ", "));
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ public abstract class HtmlUtils {
|
||||
char character = input.charAt(i);
|
||||
if (characterEntityReferences.isMappedToReference(character)) {
|
||||
escaped.append(HtmlCharacterEntityReferences.HEX_REFERENCE_START);
|
||||
escaped.append(Integer.toString((int) character, 16));
|
||||
escaped.append(Integer.toString(character, 16));
|
||||
escaped.append(HtmlCharacterEntityReferences.REFERENCE_END);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user