Polishing
This commit is contained in:
parent
9b1eb397ee
commit
487e14d549
|
|
@ -227,15 +227,13 @@ public class DefaultHandlerExceptionResolver extends AbstractHandlerExceptionRes
|
|||
return handleAsyncRequestTimeoutException(
|
||||
(AsyncRequestTimeoutException) ex, request, response, handler);
|
||||
}
|
||||
else {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception handlerEx) {
|
||||
logger.warn("Failure while trying to resolve exception [" + ex.getClass().getName() + "]", handlerEx);
|
||||
return null;
|
||||
if (logger.isWarnEnabled()) {
|
||||
logger.warn("Failure while trying to resolve exception [" + ex.getClass().getName() + "]", handlerEx);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -543,7 +541,7 @@ public class DefaultHandlerExceptionResolver extends AbstractHandlerExceptionRes
|
|||
if (!response.isCommitted()) {
|
||||
response.sendError(HttpServletResponse.SC_SERVICE_UNAVAILABLE);
|
||||
}
|
||||
else if (logger.isWarnEnabled()) {
|
||||
else {
|
||||
logger.warn("Async request timed out");
|
||||
}
|
||||
return new ModelAndView();
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -22,10 +22,9 @@ import org.springframework.lang.Nullable;
|
|||
import org.springframework.util.Assert;
|
||||
|
||||
/**
|
||||
* Abstract base class to provide common methods for implementing
|
||||
* databinding-aware JSP tags for rendering a <i>single</i>
|
||||
* HTML '{@code input}' element with a '{@code type}'
|
||||
* of '{@code checkbox}' or '{@code radio}'.
|
||||
* Abstract base class to provide common methods for implementing databinding-aware
|
||||
* JSP tags for rendering a <i>single</i> HTML '{@code input}' element with a
|
||||
* '{@code type}' of '{@code checkbox}' or '{@code radio}'.
|
||||
*
|
||||
* @author Juergen Hoeller
|
||||
* @since 2.5.2
|
||||
|
|
|
|||
|
|
@ -381,7 +381,7 @@ public class InputTag extends AbstractHtmlInputElementTag {
|
|||
String type = null;
|
||||
Map<String, Object> attributes = getDynamicAttributes();
|
||||
if (attributes != null) {
|
||||
type = (String) getDynamicAttributes().get("type");
|
||||
type = (String) attributes.get("type");
|
||||
}
|
||||
if (type == null) {
|
||||
type = getType();
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
|
|||
Loading…
Reference in New Issue