Skip to content

Commit 2d5496d

Browse files
committed
Polishing
1 parent f2328e8 commit 2d5496d

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

spring-orm-hibernate5/src/main/java/org/springframework/orm/hibernate5/HibernateTransactionManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@
6969
* and services which use plain JDBC (without being aware of Hibernate)!
7070
* Application code needs to stick to the same simple Connection lookup pattern as
7171
* with {@link org.springframework.jdbc.datasource.DataSourceTransactionManager}
72-
* (i.e. {@link DataSourceUtils#getConnection}
72+
* (i.e. {@link org.springframework.jdbc.datasource.DataSourceUtils#getConnection}
7373
* or going through a
74-
* {@link TransactionAwareDataSourceProxy}).
74+
* {@link org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy}).
7575
*
7676
* <p>Note: To be able to register a DataSource's Connection for plain JDBC code,
7777
* this instance needs to be aware of the DataSource ({@link #setDataSource}).

spring-webmvc/src/main/java/org/springframework/web/servlet/AsyncHandlerInterceptor.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2015 the original author or authors.
2+
* Copyright 2002-2016 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -53,7 +53,6 @@
5353
*
5454
* @author Rossen Stoyanchev
5555
* @since 3.2
56-
*
5756
* @see org.springframework.web.context.request.async.WebAsyncManager
5857
* @see org.springframework.web.context.request.async.CallableProcessingInterceptor
5958
* @see org.springframework.web.context.request.async.DeferredResultProcessingInterceptor
@@ -67,15 +66,13 @@ public interface AsyncHandlerInterceptor extends HandlerInterceptor {
6766
* avoid modifying them in ways that would conflict with the concurrent
6867
* execution of the handler. A typical use of this method would be to
6968
* clean up thread-local variables.
70-
*
7169
* @param request the current request
7270
* @param response the current response
7371
* @param handler the handler (or {@link HandlerMethod}) that started async
7472
* execution, for type and/or instance examination
7573
* @throws Exception in case of errors
7674
*/
77-
void afterConcurrentHandlingStarted(
78-
HttpServletRequest request, HttpServletResponse response, Object handler)
75+
void afterConcurrentHandlingStarted(HttpServletRequest request, HttpServletResponse response, Object handler)
7976
throws Exception;
8077

8178
}

spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ExceptionHandlerExceptionResolver.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,15 @@ private void initExceptionHandlerAdviceCache() {
265265
ExceptionHandlerMethodResolver resolver = new ExceptionHandlerMethodResolver(adviceBean.getBeanType());
266266
if (resolver.hasExceptionMappings()) {
267267
this.exceptionHandlerAdviceCache.put(adviceBean, resolver);
268-
logger.info("Detected @ExceptionHandler methods in " + adviceBean);
268+
if (logger.isInfoEnabled()) {
269+
logger.info("Detected @ExceptionHandler methods in " + adviceBean);
270+
}
269271
}
270272
if (ResponseBodyAdvice.class.isAssignableFrom(adviceBean.getBeanType())) {
271273
this.responseBodyAdvice.add(adviceBean);
272-
logger.info("Detected ResponseBodyAdvice implementation in " + adviceBean);
274+
if (logger.isInfoEnabled()) {
275+
logger.info("Detected ResponseBodyAdvice implementation in " + adviceBean);
276+
}
273277
}
274278
}
275279
}

0 commit comments

Comments
 (0)