Polishing

This commit is contained in:
Juergen Hoeller
2015-07-30 19:34:33 +02:00
parent 2c2bed2adb
commit 9ef38807e6
5 changed files with 7 additions and 7 deletions

View File

@@ -239,6 +239,7 @@ public class EnableAsyncTests {
@Configuration
@EnableAsync(mode = AdviceMode.ASPECTJ)
static class AspectJAsyncAnnotationConfig {
@Bean
public AsyncBean asyncBean() {
return new AsyncBean();
@@ -276,7 +277,7 @@ public class EnableAsyncTests {
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
return exceptionHandler();
return exceptionHandler();
}
@Bean

View File

@@ -144,6 +144,7 @@ public class SendToMethodReturnValueHandler implements HandlerMethodReturnValueH
if (returnValue == null) {
return;
}
MessageHeaders headers = message.getHeaders();
String sessionId = SimpMessageHeaderAccessor.getSessionId(headers);
PlaceholderResolver varResolver = initVarResolver(headers);

View File

@@ -17,12 +17,10 @@
package org.springframework.web.context.request;
import java.security.Principal;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Iterator;
import java.util.Locale;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
@@ -40,7 +38,6 @@ import org.springframework.web.util.WebUtils;
* @author Juergen Hoeller
* @author Brian Clozel
* @author Markus Malkusch
*
* @since 2.0
*/
public class ServletWebRequest extends ServletRequestAttributes implements NativeWebRequest {

View File

@@ -100,13 +100,13 @@ import org.springframework.web.util.WebUtils;
/**
* An {@link AbstractHandlerMethodAdapter} that supports {@link HandlerMethod}s
* with the signature -- method argument and return types, defined in
* with their method argument and return type signature, as defined via
* {@code @RequestMapping}.
*
* <p>Support for custom argument and return value types can be added via
* {@link #setCustomArgumentResolvers} and {@link #setCustomReturnValueHandlers}.
* Or alternatively to re-configure all argument and return value types use
* {@link #setArgumentResolvers} and {@link #setReturnValueHandlers(List)}.
* Or alternatively, to re-configure all argument and return value types,
* use {@link #setArgumentResolvers} and {@link #setReturnValueHandlers}.
*
* @author Rossen Stoyanchev
* @author Juergen Hoeller

View File

@@ -133,6 +133,7 @@ public class RequestMappingHandlerMapping extends RequestMappingInfoHandlerMappi
super.afterPropertiesSet();
}
/**
* Whether to use suffix pattern matching.
*/