提交 487e14d5 编写于 作者: J Juergen Hoeller

Polishing

上级 9b1eb397
......@@ -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();
......
/*
* 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();
......
/*
* 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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册