Browse Source

Polishing

pull/1912/head
Juergen Hoeller 6 years ago
parent
commit
487e14d549
  1. 10
      spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/support/DefaultHandlerExceptionResolver.java
  2. 9
      spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/AbstractSingleCheckedElementTag.java
  3. 2
      spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/InputTag.java
  4. 2
      spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/TextareaTag.java

10
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/support/DefaultHandlerExceptionResolver.java

@ -227,16 +227,14 @@ public class DefaultHandlerExceptionResolver extends AbstractHandlerExceptionRes @@ -227,16 +227,14 @@ public class DefaultHandlerExceptionResolver extends AbstractHandlerExceptionRes
return handleAsyncRequestTimeoutException(
(AsyncRequestTimeoutException) ex, request, response, handler);
}
else {
return null;
}
}
catch (Exception handlerEx) {
if (logger.isWarnEnabled()) {
logger.warn("Failure while trying to resolve exception [" + ex.getClass().getName() + "]", handlerEx);
return null;
}
}
return null;
}
/**
* Handle the case where no request handler method was found for the particular HTTP request method.
@ -543,7 +541,7 @@ public class DefaultHandlerExceptionResolver extends AbstractHandlerExceptionRes @@ -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();

9
spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/AbstractSingleCheckedElementTag.java

@ -1,5 +1,5 @@ @@ -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; @@ -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

2
spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/InputTag.java

@ -381,7 +381,7 @@ public class InputTag extends AbstractHtmlInputElementTag { @@ -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();

2
spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/TextareaTag.java

@ -1,5 +1,5 @@ @@ -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…
Cancel
Save